summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-13 23:16:11 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-13 23:16:11 +0000
commit1f3de49f3755d8a995f93a1e2973059da5a1a4d4 (patch)
tree876e669fdef21fad1afb13e105d4f969bd67cbba /llvm/lib/MC/MCObjectFileInfo.cpp
parent2094dbf4e7d240dbc7e9188b3a6501e6c91d2889 (diff)
downloadbcm5719-llvm-1f3de49f3755d8a995f93a1e2973059da5a1a4d4.tar.gz
bcm5719-llvm-1f3de49f3755d8a995f93a1e2973059da5a1a4d4.zip
Use __literal16. It has been supported by the linker since 2005.
llvm-svn: 201365
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp14
1 files changed, 4 insertions, 10 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index a160f298e18..931b3544e34 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -79,16 +79,10 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
MCSectionMachO::S_8BYTE_LITERALS,
SectionKind::getMergeableConst8());
- // ld_classic doesn't support .literal16 in 32-bit mode, and ld64 falls back
- // to using it in -static mode.
- SixteenByteConstantSection = 0;
- if (RelocM != Reloc::Static &&
- T.getArch() != Triple::x86_64 && T.getArch() != Triple::ppc64 &&
- T.getArch() != Triple::ppc64le)
- SixteenByteConstantSection = // .literal16
- Ctx->getMachOSection("__TEXT", "__literal16",
- MCSectionMachO::S_16BYTE_LITERALS,
- SectionKind::getMergeableConst16());
+ SixteenByteConstantSection // .literal16
+ = Ctx->getMachOSection("__TEXT", "__literal16",
+ MCSectionMachO::S_16BYTE_LITERALS,
+ SectionKind::getMergeableConst16());
ReadOnlySection // .const
= Ctx->getMachOSection("__TEXT", "__const", 0,
OpenPOWER on IntegriCloud