diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-06-30 17:39:43 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-06-30 17:39:43 +0000 |
commit | 42a7206deb117a1afcd279f047d1e06fde1bb105 (patch) | |
tree | 0718d5d7d224aa99989f0d38c9ebf1bf409516e7 /lib/AST/ExternalASTSource.cpp | |
parent | 11fd95dc829c969286da2082e4506f10a7363588 (diff) | |
download | clang-42a7206deb117a1afcd279f047d1e06fde1bb105.tar.gz |
Add a function to ExternalASTSource that returns a descriptor that
abstracts the commonalities between modules and PCH files that are
needed to emit debug info for a module or precompiled header.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExternalASTSource.cpp')
-rw-r--r-- | lib/AST/ExternalASTSource.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/AST/ExternalASTSource.cpp b/lib/AST/ExternalASTSource.cpp index 730842a28f..1c82c35513 100644 --- a/lib/AST/ExternalASTSource.cpp +++ b/lib/AST/ExternalASTSource.cpp @@ -22,6 +22,16 @@ using namespace clang; ExternalASTSource::~ExternalASTSource() { } +llvm::Optional<ExternalASTSource::ASTSourceDescriptor> +ExternalASTSource::getSourceDescriptor(unsigned ID) { + return None; +} + +ExternalASTSource::ASTSourceDescriptor +ExternalASTSource::getSourceDescriptor(const Module &M) { + return ASTSourceDescriptor(); +} + void ExternalASTSource::FindFileRegionDecls(FileID File, unsigned Offset, unsigned Length, SmallVectorImpl<Decl *> &Decls) {} |