Add new mapping info pass, when EmitMappingInfo is on.

llvm-svn: 13981
This commit is contained in:
Brian Gaeke 2004-06-03 05:03:01 +00:00
parent 25c6fa0e83
commit 0a48c0d913
1 changed files with 4 additions and 2 deletions

View File

@ -179,8 +179,10 @@ SparcV9TargetMachine::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out
if (!DisablePeephole) if (!DisablePeephole)
PM.add(createPeepholeOptsPass(*this)); PM.add(createPeepholeOptsPass(*this));
if (EmitMappingInfo) if (EmitMappingInfo) {
PM.add(getMappingInfoAsmPrinterPass(Out)); PM.add(createInternalGlobalMapperPass());
PM.add(getMappingInfoAsmPrinterPass(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