Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.146 -> 1.147 X86AsmPrinter.h updated: 1.2 -> 1.3 --- Log message: Rename SwitchSection -> switchSection to avoid conflicting with a future change. --- Diffs of the changes: (+6 -6) X86AsmPrinter.cpp | 8 ++++---- X86AsmPrinter.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) Index: llvm/lib/Target/X86/X86AsmPrinter.cpp diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.146 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.147 --- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.146 Mon Nov 21 00:46:22 2005 +++ llvm/lib/Target/X86/X86AsmPrinter.cpp Mon Nov 21 00:55:27 2005 @@ -120,7 +120,7 @@ if (C->isNullValue() && (I->hasLinkOnceLinkage() || I->hasInternalLinkage() || I->hasWeakLinkage() /* FIXME: Verify correct */)) { - SwitchSection(O, CurSection, ".data"); + switchSection(O, CurSection, ".data"); if (!forCygwin && !forDarwin && I->hasInternalLinkage()) O << "\t.local " << name << "\n"; if (forDarwin && I->hasInternalLinkage()) @@ -139,7 +139,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; case GlobalValue::AppendingLinkage: @@ -151,9 +151,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; } Index: llvm/lib/Target/X86/X86AsmPrinter.h diff -u llvm/lib/Target/X86/X86AsmPrinter.h:1.2 llvm/lib/Target/X86/X86AsmPrinter.h:1.3 --- llvm/lib/Target/X86/X86AsmPrinter.h:1.2 Thu Jul 7 19:23:26 2005 +++ llvm/lib/Target/X86/X86AsmPrinter.h Mon Nov 21 00:55:27 2005 @@ -56,9 +56,9 @@ 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! - inline static void SwitchSection(std::ostream &OS, std::string &CurSection, + inline static void switchSection(std::ostream &OS, std::string &CurSection, const char *NewSection) { if (CurSection != NewSection) { CurSection = NewSection; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits