aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-06-22 21:48:11 -0700
committerFangrui Song <i@maskray.me>2024-06-22 21:48:11 -0700
commit95f983f8239c071712cc42d0d54d3ebfa7c32a22 (patch)
tree262a817f9c5d7517e8f9b2ee70ce45bc91819b1c /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parentb37a4b9991a0a669594b53caa0eb75f489211d69 (diff)
downloadllvm-95f983f8239c071712cc42d0d54d3ebfa7c32a22.zip
llvm-95f983f8239c071712cc42d0d54d3ebfa7c32a22.tar.gz
llvm-95f983f8239c071712cc42d0d54d3ebfa7c32a22.tar.bz2
[MC] Change Subsection parameters from const MCExpr * to uint32_t
Follow-up to 05ba5c0648ae5e80d5afce270495bf3b1eef9af4. uint32_t is preferred over const MCExpr * in the section stack uses because it should only be evaluated once. Change the paramter type to match.
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index b2c1750..957b283 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -2725,8 +2725,7 @@ MCSection *TargetLoweringObjectFileGOFF::getExplicitSectionGlobal(
MCSection *TargetLoweringObjectFileGOFF::getSectionForLSDA(
const Function &F, const MCSymbol &FnSym, const TargetMachine &TM) const {
std::string Name = ".gcc_exception_table." + F.getName().str();
- return getContext().getGOFFSection(Name, SectionKind::getData(), nullptr,
- nullptr);
+ return getContext().getGOFFSection(Name, SectionKind::getData(), nullptr, 0);
}
MCSection *TargetLoweringObjectFileGOFF::SelectSectionForGlobal(
@@ -2734,7 +2733,7 @@ MCSection *TargetLoweringObjectFileGOFF::SelectSectionForGlobal(
auto *Symbol = TM.getSymbol(GO);
if (Kind.isBSS())
return getContext().getGOFFSection(Symbol->getName(), SectionKind::getBSS(),
- nullptr, nullptr);
+ nullptr, 0);
return getContext().getObjectFileInfo()->getTextSection();
}