diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-05-11 08:52:04 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2009-05-11 08:52:04 +0000 |
commit | ea5a8d88087f358a0a7cb838d973470d102ebe8a (patch) | |
tree | d58bcfcdf2fad9dbf80a693fcb06e25a3fe20e64 /llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp | |
parent | 9d175c15e768d5ed4cb8fb1771621a299b87a94a (diff) | |
download | bcm5719-llvm-ea5a8d88087f358a0a7cb838d973470d102ebe8a.tar.gz bcm5719-llvm-ea5a8d88087f358a0a7cb838d973470d102ebe8a.zip |
Fix more naming issues.
compiler libcalls start with .lib. now.
fixed section names.
llvm-svn: 71424
Diffstat (limited to 'llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp index f88d9e7e627..9dd4d3bc08c 100644 --- a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp @@ -157,7 +157,7 @@ void PIC16AsmPrinter::printDecls(void) { // If no libcalls used, return. if (Decls.empty()) return; - const Section *S = TAI->getNamedSection(PAN::getDeclSectionName().c_str()); + const Section *S = TAI->getNamedSection(PAN::getLibDeclSectionName().c_str()); SwitchToSection(S); // Remove duplicate entries. Decls.sort(); @@ -166,8 +166,8 @@ void PIC16AsmPrinter::printDecls(void) { I != Decls.end(); I++) { O << TAI->getExternDirective() << *I << "\n"; // FIXME: Use PAN::getXXXLabel() funtions hrer. - O << TAI->getExternDirective() << *I << ".args." << "\n"; - O << TAI->getExternDirective() << *I << ".ret." << "\n"; + O << TAI->getExternDirective() << PAN::getArgsLabel(*I) << "\n"; + O << TAI->getExternDirective() << PAN::getRetvalLabel(*I) << "\n"; } } @@ -191,7 +191,7 @@ bool PIC16AsmPrinter::doInitialization (Module &M) { void PIC16AsmPrinter::EmitExternsAndGlobals (Module &M) { // Emit declarations for external functions. - O << "section.0" <<"\n"; + O << PAN::getDeclSectionName() <<"\n"; for (Module::iterator I = M.begin(), E = M.end(); I != E; I++) { std::string Name = Mang->getValueName(I); if (Name.compare("@abort") == 0) |