forked from OSchip/llvm-project
Disable emitting LLVM-to-MI maps, by default.
Add -emitmaps options to turn this back on. llvm-svn: 7774
This commit is contained in:
parent
05e8f9cea0
commit
d6f22ad8d3
|
@ -47,13 +47,15 @@ static cl::opt<bool> DisableSched("disable-sched",
|
||||||
static cl::opt<bool> DisablePeephole("disable-peephole",
|
static cl::opt<bool> DisablePeephole("disable-peephole",
|
||||||
cl::desc("Disable peephole optimization pass"));
|
cl::desc("Disable peephole optimization pass"));
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool> EmitMappingInfo("emitmaps",
|
||||||
DisableStrip("disable-strip",
|
cl::desc("Emit LLVM-to-MachineCode mapping info to assembly"));
|
||||||
cl::desc("Do not strip the LLVM bytecode included in the executable"));
|
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool> DisableStrip("disable-strip",
|
||||||
DumpInput("dump-input",cl::desc("Print bytecode before native code generation"),
|
cl::desc("Do not strip the LLVM bytecode included in executable"));
|
||||||
cl::Hidden);
|
|
||||||
|
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
|
// allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
|
||||||
|
@ -197,7 +199,8 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
|
||||||
if (!DisablePeephole)
|
if (!DisablePeephole)
|
||||||
PM.add(createPeepholeOptsPass(*this));
|
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
|
// Output assembly language to the .s file. Assembly emission is split into
|
||||||
// two parts: Function output and Global value output. This is because
|
// 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));
|
PM.add(getModuleAsmPrinterPass(Out));
|
||||||
|
|
||||||
// Emit bytecode to the assembly file into its special section next
|
// Emit bytecode to the assembly file into its special section next
|
||||||
PM.add(getEmitBytecodeToAsmPass(Out));
|
if (EmitMappingInfo) {
|
||||||
PM.add(getFunctionInfo(Out));
|
PM.add(getEmitBytecodeToAsmPass(Out));
|
||||||
|
PM.add(getFunctionInfo(Out));
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue