Changes in directory llvm/lib/Target/PowerPC:
PPCAsmPrinter.cpp updated: 1.123 -> 1.124 PPCInstrInfo.td updated: 1.154 -> 1.155 --- Log message: Remove type casts that are no longer needed --- Diffs of the changes: (+7 -6) PPCAsmPrinter.cpp | 5 +++-- PPCInstrInfo.td | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.123 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.124 --- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.123 Fri Dec 9 12:24:29 2005 +++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp Sun Dec 11 01:45:47 2005 @@ -42,7 +42,7 @@ Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed"); class PPCAsmPrinter : public AsmPrinter { -public: + public: std::set<std::string> FnStubs, GVStubs, LinkOnceStubs; PPCAsmPrinter(std::ostream &O, TargetMachine &TM) @@ -197,6 +197,7 @@ Data64bitsDirective = 0; // we can't emit a 64-bit unit AlignmentIsInBytes = false; // Alignment is by power of 2. ConstantPoolSection = "\t.const\t"; + LCOMMDirective = "\t.lcomm\t"; } virtual const char *getPassName() const { @@ -465,7 +466,7 @@ SwitchSection(".data", I); if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it. if (I->hasInternalLinkage()) - O << ".lcomm " << name << "," << Size << "," << Align; + O << LCOMMDirective << name << "," << Size << "," << Align; else O << ".comm " << name << "," << Size; O << "\t\t; '" << I->getName() << "'\n"; Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.154 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.155 --- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.154 Fri Dec 9 20:36:00 2005 +++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Sun Dec 11 01:45:47 2005 @@ -940,10 +940,10 @@ (RLDICL G8RC:$in, (SRL64 imm:$imm), imm:$imm)>; // Hi and Lo for Darwin Global Addresses. -def : Pat<(PPChi tglobaladdr:$in, (i32 0)), (LIS tglobaladdr:$in)>; -def : Pat<(PPClo tglobaladdr:$in, (i32 0)), (LI tglobaladdr:$in)>; -def : Pat<(PPChi tconstpool:$in, (i32 0)), (LIS tconstpool:$in)>; -def : Pat<(PPClo tconstpool:$in, (i32 0)), (LI tconstpool:$in)>; +def : Pat<(PPChi tglobaladdr:$in, 0), (LIS tglobaladdr:$in)>; +def : Pat<(PPClo tglobaladdr:$in, 0), (LI tglobaladdr:$in)>; +def : Pat<(PPChi tconstpool:$in, 0), (LIS tconstpool:$in)>; +def : Pat<(PPClo tconstpool:$in, 0), (LI tconstpool:$in)>; def : Pat<(add GPRC:$in, (PPChi tglobaladdr:$g, 0)), (ADDIS GPRC:$in, tglobaladdr:$g)>; def : Pat<(add GPRC:$in, (PPChi tconstpool:$g, 0)), _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits