summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-07-28 19:11:24 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2008-07-28 19:11:24 +0000
commitbcaf6e5243b9fe728e8084cc2d1e88ef4b2a8733 (patch)
tree0cf99611f4fe87bc77fb74f7f2b4458fa95bed26 /llvm/lib/Target/Mips/MipsAsmPrinter.cpp
parentced7c7220e6d3c79d482cb4da535dbe945865844 (diff)
downloadbcm5719-llvm-bcaf6e5243b9fe728e8084cc2d1e88ef4b2a8733.tar.gz
bcm5719-llvm-bcaf6e5243b9fe728e8084cc2d1e88ef4b2a8733.zip
Added floating point lowering for setcc and brcond.
Fixed COMM asm directive usage. ConstantPool using custom FourByteConstantSection. llvm-svn: 54139
Diffstat (limited to 'llvm/lib/Target/Mips/MipsAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsAsmPrinter.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
index d00680e54a1..9e334c15df8 100644
--- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
+++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp
@@ -518,17 +518,13 @@ printModuleLevelGV(const GlobalVariable* GVar) {
(GVar->hasInternalLinkage() || GVar->isWeakForLinker())) {
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
- if (GVar->hasInternalLinkage()) {
- if (TAI->getLCOMMDirective())
- O << TAI->getLCOMMDirective() << name << ',' << Size;
- else
- O << "\t.local\t" << name << '\n';
- } else {
- O << TAI->getCOMMDirective() << name << ',' << Size;
- // The .comm alignment in bytes.
- if (TAI->getCOMMDirectiveTakesAlignment())
- O << ',' << (TAI->getAlignmentIsInBytes() ? (1 << Align) : Align);
- }
+ if (GVar->hasInternalLinkage())
+ O << "\t.local\t" << name << '\n';
+
+ O << TAI->getCOMMDirective() << name << ',' << Size;
+ if (TAI->getCOMMDirectiveTakesAlignment())
+ O << ',' << (1 << Align);
+
O << '\n';
return;
}
OpenPOWER on IntegriCloud