summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-09-19 00:10:37 +0000
committerAdrian Prantl <aprantl@apple.com>2015-09-19 00:10:37 +0000
commit2d3d6dfe1c4a03e4f8ebb894221a45a65a37f90d (patch)
tree46e906240568e2e8085b7e03541ef696ce4c8e99
parentc6458d6a4d3b5b8b95794f05c555990f9b037b82 (diff)
downloadbcm5719-llvm-2d3d6dfe1c4a03e4f8ebb894221a45a65a37f90d.tar.gz
bcm5719-llvm-2d3d6dfe1c4a03e4f8ebb894221a45a65a37f90d.zip
Rename ASTSourceDescriptor::ModuleName to FullModuleName for clarity.
llvm-svn: 248070
-rw-r--r--clang/include/clang/AST/ExternalASTSource.h5
-rw-r--r--clang/lib/AST/ExternalASTSource.cpp2
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp14
3 files changed, 11 insertions, 10 deletions
diff --git a/clang/include/clang/AST/ExternalASTSource.h b/clang/include/clang/AST/ExternalASTSource.h
index 6be592f0e1f..8f9512947db 100644
--- a/clang/include/clang/AST/ExternalASTSource.h
+++ b/clang/include/clang/AST/ExternalASTSource.h
@@ -146,12 +146,13 @@ public:
/// everything needed to generate debug info for an imported module
/// or PCH.
struct ASTSourceDescriptor {
+ ASTSourceDescriptor(){};
ASTSourceDescriptor(std::string Name, std::string Path, std::string ASTFile,
uint64_t Signature)
- : ModuleName(Name), Path(Path), ASTFile(ASTFile),
+ : FullModuleName(Name), Path(Path), ASTFile(ASTFile),
Signature(Signature){};
ASTSourceDescriptor(const Module &M);
- std::string ModuleName;
+ std::string FullModuleName;
std::string Path;
std::string ASTFile;
uint64_t Signature = 0;
diff --git a/clang/lib/AST/ExternalASTSource.cpp b/clang/lib/AST/ExternalASTSource.cpp
index 62d41d3e497..8d32dd23bbe 100644
--- a/clang/lib/AST/ExternalASTSource.cpp
+++ b/clang/lib/AST/ExternalASTSource.cpp
@@ -29,7 +29,7 @@ ExternalASTSource::getSourceDescriptor(unsigned ID) {
}
ExternalASTSource::ASTSourceDescriptor::ASTSourceDescriptor(const Module &M)
- : ModuleName(M.getFullModuleName()), Signature(M.Signature) {
+ : FullModuleName(M.getFullModuleName()), Signature(M.Signature) {
if (M.Directory)
Path = M.Directory->getName();
if (auto *File = M.getASTFile())
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 7d6bd166873..2743c3f28e8 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1675,7 +1675,7 @@ llvm::DIType *CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
llvm::DIModule *
CGDebugInfo::getOrCreateModuleRef(ExternalASTSource::ASTSourceDescriptor Mod,
bool CreateSkeletonCU) {
- auto &ModRef = ModuleRefCache[Mod.ModuleName];
+ auto &ModRef = ModuleRefCache[Mod.FullModuleName];
if (ModRef)
return cast<llvm::DIModule>(ModRef);
@@ -1705,15 +1705,15 @@ CGDebugInfo::getOrCreateModuleRef(ExternalASTSource::ASTSourceDescriptor Mod,
llvm::DIModule *M = nullptr;
if (CreateSkeletonCU) {
llvm::DIBuilder DIB(CGM.getModule());
- auto *CU = DIB.createCompileUnit(TheCU->getSourceLanguage(), Mod.ModuleName,
- Mod.Path, TheCU->getProducer(), true,
- StringRef(), 0, Mod.ASTFile,
- llvm::DIBuilder::FullDebug, Mod.Signature);
- M = DIB.createModule(CU, Mod.ModuleName, ConfigMacros, Mod.Path,
+ auto *CU = DIB.createCompileUnit(
+ TheCU->getSourceLanguage(), Mod.FullModuleName, Mod.Path,
+ TheCU->getProducer(), true, StringRef(), 0, Mod.ASTFile,
+ llvm::DIBuilder::FullDebug, Mod.Signature);
+ M = DIB.createModule(CU, Mod.FullModuleName, ConfigMacros, Mod.Path,
CGM.getHeaderSearchOpts().Sysroot);
DIB.finalize();
} else
- M = DBuilder.createModule(TheCU, Mod.ModuleName, ConfigMacros, Mod.Path,
+ M = DBuilder.createModule(TheCU, Mod.FullModuleName, ConfigMacros, Mod.Path,
CGM.getHeaderSearchOpts().Sysroot);
ModRef.reset(M);
return M;
OpenPOWER on IntegriCloud