r209766 - Reverting 209503 - Breaks asan blacklists
Warren Hunt
whunt at google.com
Wed May 28 12:17:45 PDT 2014
Author: whunt
Date: Wed May 28 14:17:45 2014
New Revision: 209766
URL: http://llvm.org/viewvc/llvm-project?rev=209766&view=rev
Log:
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.
Removed:
cfe/trunk/test/CodeGen/main-file-name.c
Modified:
cfe/trunk/lib/CodeGen/CodeGenAction.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenAction.cpp?rev=209766&r1=209765&r2=209766&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenAction.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenAction.cpp Wed May 28 14:17:45 2014
@@ -565,12 +565,9 @@ ASTConsumer *CodeGenAction::CreateASTCon
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;
}
Removed: cfe/trunk/test/CodeGen/main-file-name.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/main-file-name.c?rev=209765&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/main-file-name.c (original)
+++ cfe/trunk/test/CodeGen/main-file-name.c (removed)
@@ -1,6 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
-// RUN: %clang_cc1 -emit-llvm -o - %s -main-file-name some.name | FileCheck -check-prefix NAMED %s
-
-// CHECK: ; ModuleID = '{{.*}}main-file-name.c'
-// NAMED: ; ModuleID = 'some.name'
-
More information about the cfe-commits
mailing list