aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-30 10:23:13 -0700
committerFangrui Song <i@maskray.me>2024-06-30 10:23:13 -0700
commit41a08e764aeec92703285754b5e8acd85283b1a6 (patch)
treeddd0b73498d2a720f423c8e75c82eee893b100b0 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent4066a3206012cded6de2e286732dca721d37bcd3 (diff)
downloadllvm-41a08e764aeec92703285754b5e8acd85283b1a6.zip
llvm-41a08e764aeec92703285754b5e8acd85283b1a6.tar.gz
llvm-41a08e764aeec92703285754b5e8acd85283b1a6.tar.bz2
[MC] Move Mach-O specific getAtom and isSectionAtomizableBySymbols to Mach-O files
and devirtualize isSectionAtomizableBySymbols.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 1eec346..976691b 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -43,6 +43,7 @@
#include "llvm/IR/PseudoProbe.h"
#include "llvm/IR/Type.h"
#include "llvm/MC/MCAsmInfo.h"
+#include "llvm/MC/MCAsmInfoDarwin.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCSectionCOFF.h"
@@ -1555,7 +1556,7 @@ const MCExpr *TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(
static bool canUsePrivateLabel(const MCAsmInfo &AsmInfo,
const MCSection &Section) {
- if (!AsmInfo.isSectionAtomizableBySymbols(Section))
+ if (!MCAsmInfoDarwin::isSectionAtomizableBySymbols(Section))
return true;
// FIXME: we should be able to use private labels for sections that can't be