diff options
| author | Warren Hunt <whunt@google.com> | 2014-05-28 19:17:45 +0000 |
|---|---|---|
| committer | Warren Hunt <whunt@google.com> | 2014-05-28 19:17:45 +0000 |
| commit | 5ff1d8a32b03cd24659fccae6eca1700193bdcbc (patch) | |
| tree | f4777d93d61ceea423620ff22f8d932bb18a1c6b /lib/CodeGen/CodeGenAction.cpp | |
| parent | e700e8b505327b657600405d8f2c361c6a5536e5 (diff) | |
| download | clang-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.cpp | 5 |
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; } |
