diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-08-08 21:04:16 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2013-08-08 21:04:16 +0000 |
commit | c31c2de18b700564f0a0a04637c6ddcb08fe444c (patch) | |
tree | dc66b4b437b7066ae28b48924f20a096e5e54e71 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | a05adfaa908237d7d4716830069c2aa1431ff34c (diff) | |
download | bcm5719-llvm-c31c2de18b700564f0a0a04637c6ddcb08fe444c.tar.gz bcm5719-llvm-c31c2de18b700564f0a0a04637c6ddcb08fe444c.zip |
Revert "Reapply r185872 now that the address sanitizer has been changed to support this."
This reverts commit r187939. It broke an O0 build of a spec benchmark.
llvm-svn: 188012
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index cf70ad6a2ec..ea0d62e6ef3 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -524,14 +524,14 @@ const MCSection *TargetLoweringObjectFileMachO:: SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const { if (Kind.isText()) - return TextSection; - - // If this is weak/linkonce, put this in a read only or data section depending - // on whether or not it's writable. + return GV->isWeakForLinker() ? TextCoalSection : TextSection; + + // If this is weak/linkonce, put this in a coalescable section, either in text + // or data depending on if it is writable. if (GV->isWeakForLinker()) { if (Kind.isReadOnly()) - return ReadOnlySection; - return DataSection; + return ConstTextCoalSection; + return DataCoalSection; } // FIXME: Alignment check should be handled by section classifier. |