[PATCH] D126808: [BOLT][NFC] Remove unused variable
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 13:43:31 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0426100ff482: [BOLT][NFC] Remove unused variable (authored by maksfb).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126808/new/
https://reviews.llvm.org/D126808
Files:
bolt/lib/Core/BinaryFunction.cpp
Index: bolt/lib/Core/BinaryFunction.cpp
===================================================================
--- bolt/lib/Core/BinaryFunction.cpp
+++ bolt/lib/Core/BinaryFunction.cpp
@@ -1354,10 +1354,6 @@
ItrE = Relocations.lower_bound(Offset + Size);
Itr != ItrE; ++Itr) {
const Relocation &Relocation = Itr->second;
- uint64_t SymbolValue = Relocation.Value - Relocation.Addend;
- if (Relocation.isPCRelative())
- SymbolValue += getAddress() + Relocation.Offset;
-
int64_t Value = Relocation.Value;
const bool Result = BC.MIB->replaceImmWithSymbolRef(
Instruction, Relocation.Symbol, Relocation.Addend, Ctx.get(), Value,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126808.433533.patch
Type: text/x-patch
Size: 715 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/346393c2/attachment.bin>
More information about the llvm-commits
mailing list