diff options
author | Arthur Eubanks <aeubanks@google.com> | 2023-12-14 09:32:55 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 09:32:55 -0800 |
commit | f0c03da63c16566359820bcea95a0d876da83f6d (patch) | |
tree | 208e09efd7b06dbf2b4f50652f0fb512bce5db6f /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 88f1a2c50d722fe0e444b3e4d8f41524b2c9170d (diff) | |
download | llvm-f0c03da63c16566359820bcea95a0d876da83f6d.zip llvm-f0c03da63c16566359820bcea95a0d876da83f6d.tar.gz llvm-f0c03da63c16566359820bcea95a0d876da83f6d.tar.bz2 |
Revert "[X86] Respect code models more when determining if a global reference can fit in 32 bits" (#75500)
Reverts llvm/llvm-project#75386
Breaks build.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 18f4d54..27d47aa 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -645,7 +645,7 @@ getELFSectionNameForGlobal(const GlobalObject *GO, SectionKind Kind, Name = ".rodata.cst"; Name += utostr(EntrySize); } else { - Name = getSectionPrefixForGlobal(Kind, TM.isLargeGlobalValue(GO)); + Name = getSectionPrefixForGlobal(Kind, TM.isLargeGlobalObject(GO)); } bool HasPrefix = false; @@ -765,7 +765,7 @@ getGlobalObjectInfo(const GlobalObject *GO, const TargetMachine &TM) { Group = C->getName(); IsComdat = C->getSelectionKind() == Comdat::Any; } - if (TM.isLargeGlobalValue(GO)) + if (TM.isLargeGlobalObject(GO)) Flags |= ELF::SHF_X86_64_LARGE; return {Group, IsComdat, Flags}; } |