summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-07-19 23:14:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-07-19 23:14:32 +0000
commit70955c2d12bd64dbb2faa626ea8fe18abb621e1c (patch)
tree13f14750412bdb9cc4bb934726b2f2da53474167 /lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent36106040862e876a53a56f5765d6d3cd1181dd04 (diff)
downloadllvm-70955c2d12bd64dbb2faa626ea8fe18abb621e1c.tar.gz
llvm-70955c2d12bd64dbb2faa626ea8fe18abb621e1c.tar.bz2
llvm-70955c2d12bd64dbb2faa626ea8fe18abb621e1c.tar.xz
Fix an obvious typo that's preventing x86 (32-bit) from using .literal16.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135535 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--lib/CodeGen/TargetLoweringObjectFileImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index a3c562013b..7ec31b8e0f 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,