We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33b58f3 commit 5c09317Copy full SHA for 5c09317
bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
@@ -31,6 +31,17 @@ class RISCVMCPlusBuilder : public MCPlusBuilder {
31
public:
32
using MCPlusBuilder::MCPlusBuilder;
33
34
+ bool equals(const MCTargetExpr &A, const MCTargetExpr &B,
35
+ CompFuncTy Comp) const override {
36
+ const auto &RISCVExprA = cast<RISCVMCExpr>(A);
37
+ const auto &RISCVExprB = cast<RISCVMCExpr>(B);
38
+ if (RISCVExprA.getKind() != RISCVExprB.getKind())
39
+ return false;
40
+
41
+ return MCPlusBuilder::equals(*RISCVExprA.getSubExpr(),
42
+ *RISCVExprB.getSubExpr(), Comp);
43
+ }
44
45
bool shouldRecordCodeRelocation(uint64_t RelType) const override {
46
switch (RelType) {
47
case ELF::R_RISCV_JAL:
0 commit comments