summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenAction.cpp
diff options
context:
space:
mode:
authorWarren Hunt <whunt@google.com>2014-05-28 19:17:45 +0000
committerWarren Hunt <whunt@google.com>2014-05-28 19:17:45 +0000
commit5ff1d8a32b03cd24659fccae6eca1700193bdcbc (patch)
treef4777d93d61ceea423620ff22f8d932bb18a1c6b /lib/CodeGen/CodeGenAction.cpp
parente700e8b505327b657600405d8f2c361c6a5536e5 (diff)
downloadclang-5ff1d8a32b03cd24659fccae6eca1700193bdcbc.tar.gz
clang-5ff1d8a32b03cd24659fccae6eca1700193bdcbc.tar.bz2
clang-5ff1d8a32b03cd24659fccae6eca1700193bdcbc.tar.xz
Reverting 209503 - Breaks asan blacklists
I opened a discussion on cfe-commits. Ideally we've got a few things that need to happen. CompilerRT should probably have blacklists tests. Asan should probably not depend on that specific field. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenAction.cpp')
-rw-r--r--lib/CodeGen/CodeGenAction.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenAction.cpp b/lib/CodeGen/CodeGenAction.cpp
index 2fe984226e..3db1660b80 100644
--- a/lib/CodeGen/CodeGenAction.cpp
+++ b/lib/CodeGen/CodeGenAction.cpp
@@ -565,12 +565,9 @@ ASTConsumer *CodeGenAction::CreateASTConsumer(CompilerInstance &CI,
LinkModuleToUse = ModuleOrErr.get();
}
- StringRef MainFileName = getCompilerInstance().getCodeGenOpts().MainFileName;
- if (MainFileName.empty())
- MainFileName = InFile;
BEConsumer = new BackendConsumer(BA, CI.getDiagnostics(), CI.getCodeGenOpts(),
CI.getTargetOpts(), CI.getLangOpts(),
- CI.getFrontendOpts().ShowTimers, MainFileName,
+ CI.getFrontendOpts().ShowTimers, InFile,
LinkModuleToUse, OS.release(), *VMContext);
return BEConsumer;
}