[llvm] [BOLT][Linux] Support ORC for alternative instructions (PR #96709)
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 16:36:15 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:
interesting, is this something that can ever happen, or we want to make it an assertion too?
https://github.com/llvm/llvm-project/pull/96709
More information about the llvm-commits
mailing list