[cfe-commits] r135775 - in /cfe/trunk/lib: Frontend/ASTUnit.cpp Serialization/ASTReader.cpp
Jonathan D. Turner
jonathan.d.turner at gmail.com
Fri Jul 22 10:25:03 PDT 2011
Author: jonturner
Date: Fri Jul 22 12:25:03 2011
New Revision: 135775
URL: http://llvm.org/viewvc/llvm-project?rev=135775&view=rev
Log:
Remove prepending of '$' to module names.
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=135775&r1=135774&r2=135775&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Fri Jul 22 12:25:03 2011
@@ -980,7 +980,7 @@
goto error;
if (OverrideMainBuffer) {
- std::string ModName = "$" + PreambleFile;
+ std::string ModName = PreambleFile;
TranslateStoredDiagnostics(Clang->getModuleManager(), ModName,
getSourceManager(), PreambleDiagnostics,
StoredDiagnostics);
@@ -2293,7 +2293,7 @@
if (Act->BeginSourceFile(*Clang.get(), Clang->getFrontendOpts().Inputs[0].second,
Clang->getFrontendOpts().Inputs[0].first)) {
if (OverrideMainBuffer) {
- std::string ModName = "$" + PreambleFile;
+ std::string ModName = PreambleFile;
TranslateStoredDiagnostics(Clang->getModuleManager(), ModName,
getSourceManager(), PreambleDiagnostics,
StoredDiagnostics);
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=135775&r1=135774&r2=135775&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Fri Jul 22 12:25:03 2011
@@ -2643,8 +2643,8 @@
else
FirstInSource = &F;
F.Loaders.push_back(Prev);
- // A non-module AST file's module name is $filename.
- Modules["$" + FileName.str()] = &F;
+
+ Modules[FileName.str()] = &F;
// Set the AST file name.
F.FileName = FileName;
More information about the cfe-commits
mailing list