llvm.org GIT mirror llvm / f1d9fe9
Micro-optimization TLVs probably won't be as common as the other types of variables. Check for them last before defaulting to "DATA". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180631 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
1 changed file(s) with 4 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
522522 const MCSection *TargetLoweringObjectFileMachO::
523523 SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
524524 Mangler *Mang, const TargetMachine &TM) const {
525
526 // Handle thread local data.
527 if (Kind.isThreadBSS()) return TLSBSSSection;
528 if (Kind.isThreadData()) return TLSDataSection;
529
530525 if (Kind.isText())
531526 return GV->isWeakForLinker() ? TextCoalSection : TextSection;
532527
578573 // with the .zerofill directive (aka .lcomm).
579574 if (Kind.isBSSLocal())
580575 return DataBSSSection;
576
577 // Handle thread local data.
578 if (Kind.isThreadBSS()) return TLSBSSSection;
579 if (Kind.isThreadData()) return TLSDataSection;
581580
582581 // Otherwise, just drop the variable in the normal data section.
583582 return DataSection;