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 | 9b19dfc2e003e33892be2d80ad535d18f24c53d9 (patch) | |
tree | 112e7e403fef19c0258d48e4f3f7742805d09830 /lib/CodeGen | |
parent | 81e8f398582e47ef8b5d740b732b634df56844a8 (diff) | |
download | external_llvm-9b19dfc2e003e33892be2d80ad535d18f24c53d9.zip external_llvm-9b19dfc2e003e33892be2d80ad535d18f24c53d9.tar.gz external_llvm-9b19dfc2e003e33892be2d80ad535d18f24c53d9.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index cf70ad6..ea0d62e 100644 --- a/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/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. |