// getModuleAsmPrinterPass - Writes generated machine code to assembly file.
Pass* getModuleAsmPrinterPass(std::ostream &Out);
- // getEmitBytecodeToAsmPass - Emits final LLVM bytecode to assembly file.
- Pass* getEmitBytecodeToAsmPass(std::ostream &Out);
+ // getBytecodeAsmPrinterPass - Emits final LLVM bytecode to assembly file.
+ Pass* getBytecodeAsmPrinterPass(std::ostream &Out);
};
-Pass *getFunctionInfo(std::ostream &out);
-
#endif
// 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));
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
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;
}