[llvm] [BOLT] Add support for Linux kernel static keys jump table (PR #86090)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 07:41:45 PDT 2024
================
@@ -1208,6 +1218,14 @@ class MCPlusBuilder {
return nullptr;
}
+ /// Return MCSymbol that represents a target of this instruction at a given
+ /// operand number \p OpNum. If there's no symbol associated with
+ /// the operand - return nullptr.
+ virtual MCSymbol *getTargetSymbol(MCInst &Inst, unsigned OpNum = 0) const {
----------------
ayermolo wrote:
Is this needed?
Looks like it's only used in. Can that be const?
```
OS << "\tjit\t" << MIB->getTargetSymbol(Instruction)->getName()
<< " # ID: " << DynamicID;
```
https://github.com/llvm/llvm-project/pull/86090
More information about the llvm-commits
mailing list