mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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
This commit is contained in:
parent
b92c5c0c15
commit
79c980399e
@ -687,10 +687,8 @@ public:
|
|||||||
// getModuleAsmPrinterPass - Writes generated machine code to assembly file.
|
// getModuleAsmPrinterPass - Writes generated machine code to assembly file.
|
||||||
Pass* getModuleAsmPrinterPass(std::ostream &Out);
|
Pass* getModuleAsmPrinterPass(std::ostream &Out);
|
||||||
|
|
||||||
// getEmitBytecodeToAsmPass - Emits final LLVM bytecode to assembly file.
|
// getBytecodeAsmPrinterPass - Emits final LLVM bytecode to assembly file.
|
||||||
Pass* getEmitBytecodeToAsmPass(std::ostream &Out);
|
Pass* getBytecodeAsmPrinterPass(std::ostream &Out);
|
||||||
};
|
};
|
||||||
|
|
||||||
Pass *getFunctionInfo(std::ostream &out);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -180,7 +180,7 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
|
|||||||
|
|
||||||
// If LLVM dumping after transformations is requested, add it to the pipeline
|
// If LLVM dumping after transformations is requested, add it to the pipeline
|
||||||
if (DumpInput)
|
if (DumpInput)
|
||||||
PM.add(new PrintFunctionPass("Input code to instsr. selection:\n",
|
PM.add(new PrintFunctionPass("Input code to instr. selection:\n",
|
||||||
&std::cerr));
|
&std::cerr));
|
||||||
|
|
||||||
PM.add(createInstructionSelectionPass(*this));
|
PM.add(createInstructionSelectionPass(*this));
|
||||||
@ -196,7 +196,7 @@ bool UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out)
|
|||||||
PM.add(createPeepholeOptsPass(*this));
|
PM.add(createPeepholeOptsPass(*this));
|
||||||
|
|
||||||
if (EmitMappingInfo)
|
if (EmitMappingInfo)
|
||||||
PM.add(getMappingInfoCollector(Out));
|
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
|
||||||
@ -211,10 +211,8 @@ 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
|
||||||
if (EmitMappingInfo) {
|
if (EmitMappingInfo)
|
||||||
PM.add(getEmitBytecodeToAsmPass(Out));
|
PM.add(getBytecodeAsmPrinterPass(Out));
|
||||||
PM.add(getFunctionInfo(Out));
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user