mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-05 11:17:53 +00:00
Remove the TargetMachine forwards for TargetSubtargetInfo based
information and update all callers. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214781 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -145,9 +145,9 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind, Mangler &Mang,
|
||||
if (Kind.isMergeableConst16()) return MergeableConst16Section;
|
||||
}
|
||||
Type *ObjType = GV->getType()->getPointerElementType();
|
||||
if (TM.getCodeModel() == CodeModel::Small ||
|
||||
!ObjType->isSized() ||
|
||||
TM.getDataLayout()->getTypeAllocSize(ObjType) < CodeModelLargeSize) {
|
||||
if (TM.getCodeModel() == CodeModel::Small || !ObjType->isSized() ||
|
||||
TM.getSubtargetImpl()->getDataLayout()->getTypeAllocSize(ObjType) <
|
||||
CodeModelLargeSize) {
|
||||
if (Kind.isReadOnly()) return UseCPRel? ReadOnlySection
|
||||
: DataRelROSection;
|
||||
if (Kind.isBSS() || Kind.isCommon())return BSSSection;
|
||||
|
Reference in New Issue
Block a user