[llvm-commits] CVS: llvm/lib/Target/IA64/IA64AsmPrinter.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 20 22:55:39 PST 2005



Changes in directory llvm/lib/Target/IA64:

IA64AsmPrinter.cpp updated: 1.14 -> 1.15
---
Log message:

Rename SwitchSection -> switchSection to avoid conflicting with a future
change.


---
Diffs of the changes:  (+6 -6)

 IA64AsmPrinter.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/lib/Target/IA64/IA64AsmPrinter.cpp
diff -u llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.14 llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.15
--- llvm/lib/Target/IA64/IA64AsmPrinter.cpp:1.14	Mon Nov 21 00:51:52 2005
+++ llvm/lib/Target/IA64/IA64AsmPrinter.cpp	Mon Nov 21 00:55:27 2005
@@ -61,10 +61,10 @@
         MI->getOperand(Op+3).isGlobalAddress());
 }
 
-// SwitchSection - Switch to the specified section of the executable if we are
+// switchSection - Switch to the specified section of the executable if we are
 // not already in it!
 //
-static void SwitchSection(std::ostream &OS, std::string &CurSection,
+static void switchSection(std::ostream &OS, std::string &CurSection,
                           const char *NewSection) {
   if (CurSection != NewSection) {
     CurSection = NewSection;
@@ -111,7 +111,7 @@
       if (C->isNullValue() &&
           (I->hasLinkOnceLinkage() || I->hasInternalLinkage() ||
            I->hasWeakLinkage() /* FIXME: Verify correct */)) {
-        SwitchSection(O, CurSection, ".data");
+        switchSection(O, CurSection, ".data");
         if (I->hasInternalLinkage()) {
           O << "\t.lcomm " << name << "," << TD.getTypeSize(C->getType())
             << "," << (1 << Align);
@@ -129,7 +129,7 @@
         case GlobalValue::WeakLinkage:   // FIXME: Verify correct for weak.
           // Nonnull linkonce -> weak
           O << "\t.weak " << name << "\n";
-          SwitchSection(O, CurSection, "");
+          switchSection(O, CurSection, "");
           O << "\t.section\t.llvm.linkonce.d." << name
             << ", \"aw\", \"progbits\"\n";
           break;
@@ -142,9 +142,9 @@
           // FALL THROUGH
         case GlobalValue::InternalLinkage:
           if (C->isNullValue())
-            SwitchSection(O, CurSection, ".bss");
+            switchSection(O, CurSection, ".bss");
           else
-            SwitchSection(O, CurSection, ".data");
+            switchSection(O, CurSection, ".data");
           break;
         case GlobalValue::GhostLinkage:
           std::cerr << "GhostLinkage cannot appear in IA64AsmPrinter!\n";






More information about the llvm-commits mailing list