git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov
2008-08-07 09:52:13 +00:00
parent 4578862dcc
commit 003bcab8f3

View File

@ -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());
} }