[llvm-commits] [llvm] r135535 - in /llvm/trunk: lib/CodeGen/TargetLoweringObjectFileImpl.cpp test/CodeGen/X86/global-sections.ll

Evan Cheng evan.cheng at apple.com
Tue Jul 19 16:14:32 PDT 2011


Author: evancheng
Date: Tue Jul 19 18:14:32 2011
New Revision: 135535

URL: http://llvm.org/viewvc/llvm-project?rev=135535&view=rev
Log:
Fix an obvious typo that's preventing x86 (32-bit) from using .literal16.

Modified:
    llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
    llvm/trunk/test/CodeGen/X86/global-sections.ll

Modified: llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp?rev=135535&r1=135534&r2=135535&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp Tue Jul 19 18:14:32 2011
@@ -574,7 +574,7 @@
   // to using it in -static mode.
   SixteenByteConstantSection = 0;
   if (TM.getRelocationModel() != Reloc::Static &&
-      TM.getTargetData()->getPointerSize() == 32)
+      TM.getTargetData()->getPointerSizeInBits() == 32)
     SixteenByteConstantSection =   // .literal16
       getContext().getMachOSection("__TEXT", "__literal16",
                                    MCSectionMachO::S_16BYTE_LITERALS,

Modified: llvm/trunk/test/CodeGen/X86/global-sections.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/global-sections.ll?rev=135535&r1=135534&r2=135535&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/global-sections.ll (original)
+++ llvm/trunk/test/CodeGen/X86/global-sections.ll Tue Jul 19 18:14:32 2011
@@ -43,7 +43,7 @@
 ; _Complex long long const G4 = 34;
 @G4 = unnamed_addr constant {i64,i64} { i64 34, i64 0 }
 
-; DARWIN: .section        __TEXT,__const
+; DARWIN: .section        __TEXT,__literal16,16byte_literals
 ; DARWIN: _G4:
 ; DARWIN:     .long 34
 





More information about the llvm-commits mailing list