[llvm-commits] CVS: llvm/lib/Target/Sparc/Sparc.cpp
Vikram Adve
vadve at cs.uiuc.edu
Tue Aug 12 10:52:01 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
Sparc.cpp updated: 1.73 -> 1.74
---
Log message:
Disable emitting LLVM-to-MI maps, by default.
Add -emitmaps options to turn this back on.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.73 llvm/lib/Target/Sparc/Sparc.cpp:1.74
--- llvm/lib/Target/Sparc/Sparc.cpp:1.73 Wed Aug 6 18:25:25 2003
+++ llvm/lib/Target/Sparc/Sparc.cpp Tue Aug 12 10:51:02 2003
@@ -47,13 +47,15 @@
static cl::opt<bool> DisablePeephole("disable-peephole",
cl::desc("Disable peephole optimization pass"));
-static cl::opt<bool>
-DisableStrip("disable-strip",
- cl::desc("Do not strip the LLVM bytecode included in the executable"));
-
-static cl::opt<bool>
-DumpInput("dump-input",cl::desc("Print bytecode before native code generation"),
- cl::Hidden);
+static cl::opt<bool> EmitMappingInfo("emitmaps",
+ cl::desc("Emit LLVM-to-MachineCode mapping info to assembly"));
+
+static cl::opt<bool> DisableStrip("disable-strip",
+ cl::desc("Do not strip the LLVM bytecode included in executable"));
+
+static cl::opt<bool> DumpInput("dump-input",
+ cl::desc("Print bytecode before native code generation"),
+ cl::Hidden);
//----------------------------------------------------------------------------
// allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
@@ -197,7 +199,8 @@
if (!DisablePeephole)
PM.add(createPeepholeOptsPass(*this));
- PM.add(getMappingInfoCollector(Out));
+ if (EmitMappingInfo)
+ PM.add(getMappingInfoCollector(Out));
// Output assembly language to the .s file. Assembly emission is split into
// two parts: Function output and Global value output. This is because
@@ -212,8 +215,11 @@
PM.add(getModuleAsmPrinterPass(Out));
// Emit bytecode to the assembly file into its special section next
- PM.add(getEmitBytecodeToAsmPass(Out));
- PM.add(getFunctionInfo(Out));
+ if (EmitMappingInfo) {
+ PM.add(getEmitBytecodeToAsmPass(Out));
+ PM.add(getFunctionInfo(Out));
+ }
+
return false;
}
More information about the llvm-commits
mailing list