Skip to content

Commit

Permalink
Disable emitting LLVM-to-MI maps, by default.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Vikram S. Adve committed Aug 12, 2003
1 parent df398f7 commit 20a3be3
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions lib/Target/SparcV9/SparcV9TargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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;
}

Expand Down

0 comments on commit 20a3be3

Please sign in to comment.