diff options
author | Fangrui Song <i@maskray.me> | 2025-07-04 12:23:04 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2025-07-04 12:23:04 -0700 |
commit | 20b3ab5683c62ac455f010cbce1a625cfd90bedd (patch) | |
tree | b5b7792fc2429d66ede2b9984ac19a2b150a7309 /llvm/lib/MC/MCObjectStreamer.cpp | |
parent | 777391a2164b89d2030ca013562151ca3c3676d1 (diff) | |
download | llvm-20b3ab5683c62ac455f010cbce1a625cfd90bedd.zip llvm-20b3ab5683c62ac455f010cbce1a625cfd90bedd.tar.gz llvm-20b3ab5683c62ac455f010cbce1a625cfd90bedd.tar.bz2 |
MCFixup: Remove unused Loc argument
MCFixup::Loc has been removed in favor of MCExpr::Loc through
`const MCExpr *Value` (commit 777391a2164b89d2030ca013562151ca3c3676d1).
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectStreamer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp index 62b261a..bd1a774 100644 --- a/llvm/lib/MC/MCObjectStreamer.cpp +++ b/llvm/lib/MC/MCObjectStreamer.cpp @@ -188,7 +188,7 @@ void MCObjectStreamer::emitValueImpl(const MCExpr *Value, unsigned Size, return; } DF->addFixup(MCFixup::create(DF->getContents().size(), Value, - MCFixup::getDataKindForSize(Size), Loc)); + MCFixup::getDataKindForSize(Size))); DF->appendContents(Size, 0); } @@ -696,7 +696,7 @@ MCObjectStreamer::emitRelocDirective(const MCExpr &Offset, StringRef Name, if (OffsetVal.isAbsolute()) { if (OffsetVal.getConstant() < 0) return std::make_pair(false, std::string(".reloc offset is negative")); - DF->addFixup(MCFixup::create(OffsetVal.getConstant(), Expr, Kind, Loc)); + DF->addFixup(MCFixup::create(OffsetVal.getConstant(), Expr, Kind)); return std::nullopt; } if (OffsetVal.getSubSym()) @@ -712,13 +712,13 @@ MCObjectStreamer::emitRelocDirective(const MCExpr &Offset, StringRef Name, if (Error != std::nullopt) return Error; - DF->addFixup(MCFixup::create(SymbolOffset + OffsetVal.getConstant(), Expr, - Kind, Loc)); + DF->addFixup( + MCFixup::create(SymbolOffset + OffsetVal.getConstant(), Expr, Kind)); return std::nullopt; } PendingFixups.emplace_back( - &Symbol, DF, MCFixup::create(OffsetVal.getConstant(), Expr, Kind, Loc)); + &Symbol, DF, MCFixup::create(OffsetVal.getConstant(), Expr, Kind)); return std::nullopt; } |