[llvm-commits] [llvm] r56569 - /llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp

Anton Korobeynikov asl at math.spbu.ru
Wed Sep 24 15:11:26 PDT 2008


Author: asl
Date: Wed Sep 24 17:11:26 2008
New Revision: 56569

URL: http://llvm.org/viewvc/llvm-project?rev=56569&view=rev
Log:
Remove dead code for PIC16 (preparation to switch to new section handling stuff)

Modified:
    llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp

Modified: llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp?rev=56569&r1=56568&r2=56569&view=diff

==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16AsmPrinter.cpp Wed Sep 24 17:11:26 2008
@@ -416,10 +416,7 @@
           (I->hasInternalLinkage() || I->hasWeakLinkage() ||
            I->hasLinkOnceLinkage() || I->hasCommonLinkage())) {
         if (Size == 0) Size = 1;   // .comm Foo, 0 is undefined, avoid it.
-        if (!NoZerosInBSS && TAI->getBSSSection())
-          SwitchToDataSection(M.getModuleIdentifier().c_str(), I);
-        else
-          SwitchToDataSection(TAI->getDataSection(), I);
+        SwitchToDataSection(M.getModuleIdentifier().c_str(), I);
         if (TAI->getLCOMMDirective() != NULL) {
           if (I->hasInternalLinkage()) {
             O << TAI->getLCOMMDirective() << name << "," << Size;
@@ -450,13 +447,6 @@
       // FALL THROUGH
 
     case GlobalValue::InternalLinkage: 
-      if (I->isConstant()) {
-        const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
-        if (TAI->getCStringSection() && CVA && CVA->isCString()) {
-          SwitchToDataSection(TAI->getCStringSection(), I);
-          break;
-        }
-      }
       break;
 
     default:





More information about the llvm-commits mailing list