diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2008-07-28 19:11:24 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2008-07-28 19:11:24 +0000 |
commit | bcaf6e5243b9fe728e8084cc2d1e88ef4b2a8733 (patch) | |
tree | 0cf99611f4fe87bc77fb74f7f2b4458fa95bed26 /llvm/lib/Target/Mips/MipsAsmPrinter.cpp | |
parent | ced7c7220e6d3c79d482cb4da535dbe945865844 (diff) | |
download | bcm5719-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.cpp | 18 |
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; } |