[BOLT][RISCV] Fix implementation of getTargetSymbol
authorJob Noorman <jnoorman@igalia.com>
Wed, 21 Jun 2023 08:20:27 +0000 (10:20 +0200)
committerJob Noorman <jnoorman@igalia.com>
Wed, 21 Jun 2023 08:21:00 +0000 (10:21 +0200)
commitb6556dc9fe2d8b87fcbc993daa2335b9656b1bc7
treea7a2cef600b7338d499c7bce34c818074459396d
parent41b8aed499b13c093fae7d3659d93d3fb636f07b
[BOLT][RISCV] Fix implementation of getTargetSymbol

- Correctly handle OpNum == 0 (auto select operand)
- Implement MCExpr overload

Reviewed By: rafauler

Differential Revision: https://reviews.llvm.org/D153343
bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp