Skip to content

Commit

Permalink
Remove prepending of '$' to module names.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135775 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
sophiajt committed Jul 22, 2011
1 parent 832d620 commit 9461fcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Frontend/ASTUnit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ bool ASTUnit::Parse(llvm::MemoryBuffer *OverrideMainBuffer) {
goto error;

if (OverrideMainBuffer) {
std::string ModName = "$" + PreambleFile;
std::string ModName = PreambleFile;
TranslateStoredDiagnostics(Clang->getModuleManager(), ModName,
getSourceManager(), PreambleDiagnostics,
StoredDiagnostics);
Expand Down Expand Up @@ -2293,7 +2293,7 @@ void ASTUnit::CodeComplete(llvm::StringRef File, unsigned Line, unsigned Column,
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);
Expand Down
4 changes: 2 additions & 2 deletions lib/Serialization/ASTReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2643,8 +2643,8 @@ ASTReader::ASTReadResult ASTReader::ReadASTCore(llvm::StringRef FileName,
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;
Expand Down

0 comments on commit 9461fcc

Please sign in to comment.