[cfe-commits] r131504 - /cfe/trunk/lib/CodeGen/BackendUtil.cpp
Bill Wendling
isanbard at gmail.com
Tue May 17 16:06:23 PDT 2011
Author: void
Date: Tue May 17 18:06:23 2011
New Revision: 131504
URL: http://llvm.org/viewvc/llvm-project?rev=131504&view=rev
Log:
Conditionalize the use of 4.4 or 4.2 format based on the target.
<rdar://problem/8107317>
Modified:
cfe/trunk/lib/CodeGen/BackendUtil.cpp
Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/BackendUtil.cpp?rev=131504&r1=131503&r2=131504&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/BackendUtil.cpp (original)
+++ cfe/trunk/lib/CodeGen/BackendUtil.cpp Tue May 17 18:06:23 2011
@@ -112,8 +112,8 @@
FunctionPassManager *FPM = getPerFunctionPasses();
- TargetLibraryInfo *TLI =
- new TargetLibraryInfo(Triple(TheModule->getTargetTriple()));
+ Triple TargetTriple(TheModule->getTargetTriple());
+ TargetLibraryInfo *TLI = new TargetLibraryInfo(TargetTriple);
if (!CodeGenOpts.SimplifyLibCalls)
TLI->disableAllFunctions();
FPM->add(TLI);
@@ -150,14 +150,16 @@
PassManager *MPM = getPerModulePasses();
- TLI = new TargetLibraryInfo(Triple(TheModule->getTargetTriple()));
+ TLI = new TargetLibraryInfo(TargetTriple);
if (!CodeGenOpts.SimplifyLibCalls)
TLI->disableAllFunctions();
MPM->add(TLI);
if (CodeGenOpts.EmitGcovArcs || CodeGenOpts.EmitGcovNotes) {
MPM->add(createGCOVProfilerPass(CodeGenOpts.EmitGcovNotes,
- CodeGenOpts.EmitGcovArcs));
+ CodeGenOpts.EmitGcovArcs,
+ TargetTriple.isMacOSX()));
+
if (!CodeGenOpts.DebugInfo)
MPM->add(createStripSymbolsPass(true));
}
More information about the cfe-commits
mailing list