mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user