Fix a typo in Sparc.cpp.
Update names of some pass creator fns in addPassesToEmitAssembly().
FunctionInfo is gone.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8599 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index cfb753a..7b06644 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -180,7 +180,7 @@
// If LLVM dumping after transformations is requested, add it to the pipeline
if (DumpInput)
- PM.add(new PrintFunctionPass("Input code to instsr. selection:\n",
+ PM.add(new PrintFunctionPass("Input code to instr. selection:\n",
&std::cerr));
PM.add(createInstructionSelectionPass(*this));
@@ -196,7 +196,7 @@
PM.add(createPeepholeOptsPass(*this));
if (EmitMappingInfo)
- PM.add(getMappingInfoCollector(Out));
+ PM.add(getMappingInfoAsmPrinterPass(Out));
// Output assembly language to the .s file. Assembly emission is split into
// two parts: Function output and Global value output. This is because
@@ -211,10 +211,8 @@
PM.add(getModuleAsmPrinterPass(Out));
// Emit bytecode to the assembly file into its special section next
- if (EmitMappingInfo) {
- PM.add(getEmitBytecodeToAsmPass(Out));
- PM.add(getFunctionInfo(Out));
- }
+ if (EmitMappingInfo)
+ PM.add(getBytecodeAsmPrinterPass(Out));
return false;
}