Skip to content

Commit

Permalink
[BOLT][NFC] Remove unused function (llvm#89009)
Browse files Browse the repository at this point in the history
getFileOffsetFor() was replaced with getFileOffsetForAddress().
  • Loading branch information
maksfb authored Apr 17, 2024
1 parent 1f35e72 commit 52a4d81
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions bolt/include/bolt/Rewrite/RewriteInstance.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,13 +368,6 @@ class RewriteInstance {
/// rewritten binary.
void patchBuildID();

/// Return file offset corresponding to a given virtual address.
uint64_t getFileOffsetFor(uint64_t Address) {
assert(Address >= NewTextSegmentAddress &&
"address in not in the new text segment");
return Address - NewTextSegmentAddress + NewTextSegmentOffset;
}

/// Return file offset corresponding to a virtual \p Address.
/// Return 0 if the address has no mapping in the file, including being
/// part of .bss section.
Expand Down

0 comments on commit 52a4d81

Please sign in to comment.