mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -120,9 +120,9 @@ namespace {
|
|||||||
#include "IA64GenAsmWriter.inc"
|
#include "IA64GenAsmWriter.inc"
|
||||||
|
|
||||||
|
|
||||||
|
// Substitute old hook with new one temporary
|
||||||
std::string IA64AsmPrinter::getSectionForFunction(const Function &F) const {
|
std::string IA64AsmPrinter::getSectionForFunction(const Function &F) const {
|
||||||
// This means "Allocated instruXions in mem, initialized".
|
return TAI->SectionForGlobal(&F);
|
||||||
return "\n\t.section .text, \"ax\", \"progbits\"\n";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// runOnMachineFunction - This uses the printMachineInstruction()
|
/// runOnMachineFunction - This uses the printMachineInstruction()
|
||||||
@ -329,8 +329,8 @@ bool IA64AsmPrinter::doFinalization(Module &M) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// we print out ".global X \n .type X, @function" for each external function
|
// we print out ".global X \n .type X, @function" for each external function
|
||||||
O << "\n\n// br.call targets referenced (and not defined) above: \n";
|
O << "\n\n// br.call targets referenced (and not defined) above: \n";
|
||||||
for (std::set<std::string>::iterator i = ExternalFunctionNames.begin(),
|
for (std::set<std::string>::iterator i = ExternalFunctionNames.begin(),
|
||||||
e = ExternalFunctionNames.end(); i!=e; ++i) {
|
e = ExternalFunctionNames.end(); i!=e; ++i) {
|
||||||
O << "\t.global " << *i << "\n\t.type " << *i << ", @function\n";
|
O << "\t.global " << *i << "\n\t.type " << *i << ", @function\n";
|
||||||
@ -356,5 +356,3 @@ FunctionPass *llvm::createIA64CodePrinterPass(std::ostream &o,
|
|||||||
IA64TargetMachine &tm) {
|
IA64TargetMachine &tm) {
|
||||||
return new IA64AsmPrinter(o, tm, tm.getTargetAsmInfo());
|
return new IA64AsmPrinter(o, tm, tm.getTargetAsmInfo());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user