[llvm] [BOLT][Linux] Support ORC for alternative instructions (PR #96709)
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 27 17:47:27 PDT 2024
================
@@ -4472,6 +4472,18 @@ MCInst *BinaryFunction::getInstructionAtOffset(uint64_t Offset) {
}
}
+MCInst *BinaryFunction::getInstructionContainingOffset(uint64_t Offset) {
+ assert(CurrentState == State::Disassembled && "Wrong function state");
+
+ if (Offset > Size)
----------------
dcci wrote:
Let's leave it like this for now, and maybe switch to an assertion later on.
https://github.com/llvm/llvm-project/pull/96709
More information about the llvm-commits
mailing list