summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-09-19 00:10:32 +0000
committerAdrian Prantl <aprantl@apple.com>2015-09-19 00:10:32 +0000
commitc6458d6a4d3b5b8b95794f05c555990f9b037b82 (patch)
treea7bcb64a75be80913992332278c6e6b10a2b4fcc /clang/lib/CodeGen/CGDebugInfo.cpp
parent8bd4c13f6762220ce4c3e5121e53d0a38fe7eb99 (diff)
downloadbcm5719-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.cpp3
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),
OpenPOWER on IntegriCloud