Fix more naming issues.
compiler libcalls start with .lib. now.
fixed section names.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71424 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp
index f88d9e7..9dd4d3b 100644
--- a/lib/Target/PIC16/PIC16AsmPrinter.cpp
+++ b/lib/Target/PIC16/PIC16AsmPrinter.cpp
@@ -157,7 +157,7 @@
   // 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 @@
        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 @@
 
 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)