Fix an obvious typo that's preventing x86 (32-bit) from using .literal16.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 19 Jul 2011 23:14:32 +0000 (23:14 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 19 Jul 2011 23:14:32 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135535 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetLoweringObjectFileImpl.cpp
test/CodeGen/X86/global-sections.ll

index a3c562013b5904ff53d570c468bddd762ff1427a..7ec31b8e0f321dee0ec55cf71a8014d0189a9f3d 100644 (file)
@@ -574,7 +574,7 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
   // 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,
index d0a1b4d281fec4c49fab147f68bb39cbfeabde20..194f59765e5b2863471cf1837fae129e4d372461 100644 (file)
@@ -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