aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SparcV9/SparcV9TargetMachine.cpp
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-08-12 15:51:02 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-08-12 15:51:02 +0000
commit20a3be3ba832947d1dc5e6b26ae68335a7914aff (patch)
tree0941383e00420268e72cfecd1fe3e7687347bef7 /lib/Target/SparcV9/SparcV9TargetMachine.cpp
parentdf398f729f6d9dcdf321267f5e799dc4bc258be4 (diff)
downloadexternal_llvm-20a3be3ba832947d1dc5e6b26ae68335a7914aff.zip
external_llvm-20a3be3ba832947d1dc5e6b26ae68335a7914aff.tar.gz
external_llvm-20a3be3ba832947d1dc5e6b26ae68335a7914aff.tar.bz2
Disable emitting LLVM-to-MI maps, by default.
Add -emitmaps options to turn this back on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/SparcV9TargetMachine.cpp')
-rw-r--r--lib/Target/SparcV9/SparcV9TargetMachine.cpp24
1 files changed, 15 insertions, 9 deletions
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index 4656d6d..71e3239 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -47,13 +47,15 @@ static cl::opt<bool> DisableSched("disable-sched",
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> EmitMappingInfo("emitmaps",
+ cl::desc("Emit LLVM-to-MachineCode mapping info to assembly"));
-static cl::opt<bool>
-DumpInput("dump-input",cl::desc("Print bytecode before native code generation"),
- cl::Hidden);
+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 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
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 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
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;
}