diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-09-19 00:10:32 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-09-19 00:10:32 +0000 |
commit | c6458d6a4d3b5b8b95794f05c555990f9b037b82 (patch) | |
tree | a7bcb64a75be80913992332278c6e6b10a2b4fcc /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 8bd4c13f6762220ce4c3e5121e53d0a38fe7eb99 (diff) | |
download | bcm5719-llvm-c6458d6a4d3b5b8b95794f05c555990f9b037b82.tar.gz bcm5719-llvm-c6458d6a4d3b5b8b95794f05c555990f9b037b82.zip |
Refactor ASTReader::getSourceDescriptor(const Module &) into a constructor
of ASTSourceDescriptor. It was effectively a static function.
NFC.
llvm-svn: 248069
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 723e8ffde3b..7d6bd166873 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -3391,8 +3391,7 @@ void CGDebugInfo::EmitUsingDecl(const UsingDecl &UD) { } void CGDebugInfo::EmitImportDecl(const ImportDecl &ID) { - auto *Reader = CGM.getContext().getExternalSource(); - auto Info = Reader->getSourceDescriptor(*ID.getImportedModule()); + auto Info = ExternalASTSource::ASTSourceDescriptor(*ID.getImportedModule()); DBuilder.createImportedDeclaration( getCurrentContextDescriptor(cast<Decl>(ID.getDeclContext())), getOrCreateModuleRef(Info, DebugTypeExtRefs), |