diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:11:26 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:11:26 +0000 |
commit | 69721aa85cc5cc9eb172e41ffea67aff28a302c8 (patch) | |
tree | 7d78ca13221208b3946c81651d1460757b8b470f /llvm/lib/Target | |
parent | ffecb087a3748a29ea64f3e7b98b1f9fe497f211 (diff) | |
download | bcm5719-llvm-69721aa85cc5cc9eb172e41ffea67aff28a302c8.tar.gz bcm5719-llvm-69721aa85cc5cc9eb172e41ffea67aff28a302c8.zip |
Remove dead code for PIC16 (preparation to switch to new section handling stuff)
llvm-svn: 56569
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp index 8c6dfbbfdf2..5102e7a241f 100644 --- a/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/llvm/lib/Target/PIC16/PIC16AsmPrinter.cpp @@ -416,10 +416,7 @@ bool PIC16AsmPrinter::doFinalization(Module &M) (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 @@ bool PIC16AsmPrinter::doFinalization(Module &M) // 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: |