aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/TargetLoweringObjectFileImpl.cpp2
-rw-r--r--test/CodeGen/X86/global-sections.ll2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index a3c5620..7ec31b8 100644
--- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -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,
diff --git a/test/CodeGen/X86/global-sections.ll b/test/CodeGen/X86/global-sections.ll
index d0a1b4d..194f597 100644
--- a/test/CodeGen/X86/global-sections.ll
+++ b/test/CodeGen/X86/global-sections.ll
@@ -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