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 | 6ec7cf00f0199ec3021e3eb0058695f7c20b3d5d (patch) | |
tree | 9db0a3dedff7b0ae5c210130be38ce141bf4b58d | |
parent | 5979d7192c9a5f85da5bf700ffe38200228137ca (diff) |
Remove dead code for PIC16 (preparation to switch to new section handling stuff)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56569 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PIC16/PIC16AsmPrinter.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/Target/PIC16/PIC16AsmPrinter.cpp b/lib/Target/PIC16/PIC16AsmPrinter.cpp index 8c6dfbbfdf..5102e7a241 100644 --- a/lib/Target/PIC16/PIC16AsmPrinter.cpp +++ b/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: |