Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.236 -> 1.237 --- Log message: Putting more constants which do not contain relocations into .literal{4|8|16} --- Diffs of the changes: (+6 -5) X86AsmPrinter.cpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) Index: llvm/lib/Target/X86/X86AsmPrinter.cpp diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.236 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.237 --- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.236 Wed Mar 7 19:07:07 2007 +++ llvm/lib/Target/X86/X86AsmPrinter.cpp Thu Mar 8 02:25:26 2007 @@ -255,17 +255,18 @@ SwitchToDataSection(TAI->getDataSection(), I); else { // Read-only data. - bool isIntFPLiteral = Type->isInteger() || Type->isFloatingPoint(); - if (C->ContainsRelocations() && Subtarget->isTargetDarwin() && + bool HasReloc = C->ContainsRelocations(); + if (HasReloc && + Subtarget->isTargetDarwin() && TM.getRelocationModel() != Reloc::Static) SwitchToDataSection("\t.const_data\n"); - else if (isIntFPLiteral && Size == 4 && + else if (!HasReloc && Size == 4 && TAI->getFourByteConstantSection()) SwitchToDataSection(TAI->getFourByteConstantSection(), I); - else if (isIntFPLiteral && Size == 8 && + else if (!HasReloc && Size == 8 && TAI->getEightByteConstantSection()) SwitchToDataSection(TAI->getEightByteConstantSection(), I); - else if (isIntFPLiteral && Size == 16 && + else if (!HasReloc && Size == 16 && TAI->getSixteenByteConstantSection()) SwitchToDataSection(TAI->getSixteenByteConstantSection(), I); else if (TAI->getReadOnlySection()) _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits