mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 14:16:59 +00:00
Added getFunctionInfo and MappingInfoForFunction pass, and fixed the earlier error in compiling
llvm-svn: 3513
This commit is contained in:
parent
7a75a8e108
commit
b18da43529
@ -182,7 +182,7 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
|
||||
|
||||
PM.add(createPrologEpilogCodeInserter(*this));
|
||||
|
||||
//PM.add(MappingInfoForFunction(Out));
|
||||
PM.add(MappingInfoForFunction(Out));
|
||||
|
||||
// Output assembly language to the .s file. Assembly emission is split into
|
||||
// two parts: Function output and Global value output. This is because
|
||||
@ -192,12 +192,12 @@ void UltraSparc::addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) {
|
||||
//
|
||||
PM.add(getFunctionAsmPrinterPass(PM, Out));
|
||||
PM.add(new FreeMachineCodeForFunction()); // Free stuff no longer needed
|
||||
|
||||
|
||||
// Emit Module level assembly after all of the functions have been processed.
|
||||
PM.add(getModuleAsmPrinterPass(PM, Out));
|
||||
|
||||
// Emit bytecode to the sparc assembly file into its special section next
|
||||
PM.add(getEmitBytecodeToAsmPass(Out));
|
||||
//PM.add(getFunctionInfo(Out));
|
||||
PM.add(getFunctionInfo(Out));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user