diff options
author | Amir Ayupov <aaupov@fb.com> | 2023-01-17 18:26:34 -0800 |
---|---|---|
committer | Amir Ayupov <aaupov@fb.com> | 2023-01-18 13:22:57 -0800 |
commit | 706606a7df60eb54281dee6e379929b9df34b427 (patch) | |
tree | e2ed1c986c9a90d4bb40c39d5d15039a154dcf6b /bolt/include | |
parent | 1136cf17214a9402d00a362e28f1329685f0d0fd (diff) | |
download | llvm-706606a7df60eb54281dee6e379929b9df34b427.tar.gz |
[BOLT][NFC] Remove AArch64 override for evaluateBranch
Use MCInstrAnalysis implementation
Reviewed By: #bolt, rafauler, yota9
Differential Revision: https://reviews.llvm.org/D141983
Diffstat (limited to 'bolt/include')
-rw-r--r-- | bolt/include/bolt/Core/MCPlusBuilder.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bolt/include/bolt/Core/MCPlusBuilder.h b/bolt/include/bolt/Core/MCPlusBuilder.h index dd91f25d9b67..c4d3f78b3b08 100644 --- a/bolt/include/bolt/Core/MCPlusBuilder.h +++ b/bolt/include/bolt/Core/MCPlusBuilder.h @@ -822,7 +822,9 @@ public: /// \brief Given a branch instruction try to get the address the branch /// targets. Return true on success, and the address in Target. virtual bool evaluateBranch(const MCInst &Inst, uint64_t Addr, uint64_t Size, - uint64_t &Target) const; + uint64_t &Target) const { + return Analysis->evaluateBranch(Inst, Addr, Size, Target); + } /// Return true if one of the operands of the \p Inst instruction uses /// PC-relative addressing. |