Skip to content

Commit f9d5541

Browse files
committed
[JITLink][RISCV] Correct doc of ADD* fixup expressions, NFC.
According to the RISC-V ELF psABI, the relocations perform additions, and this is also what the code implements.
1 parent 037f203 commit f9d5541

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/include/llvm/ExecutionEngine/JITLink/riscv.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,25 +110,25 @@ enum EdgeKind_riscv : Edge::Kind {
110110
/// 8 bits label addition
111111
///
112112
/// Fixup expression
113-
/// Fixup <- (Target - *{1}Fixup + Addend)
113+
/// Fixup <- (Target + *{1}Fixup + Addend)
114114
R_RISCV_ADD8,
115115

116116
/// 16 bits label addition
117117
///
118118
/// Fixup expression
119-
/// Fixup <- (Target - *{2}Fixup + Addend)
119+
/// Fixup <- (Target + *{2}Fixup + Addend)
120120
R_RISCV_ADD16,
121121

122122
/// 32 bits label addition
123123
///
124124
/// Fixup expression:
125-
/// Fixup <- (Target - *{4}Fixup + Addend)
125+
/// Fixup <- (Target + *{4}Fixup + Addend)
126126
R_RISCV_ADD32,
127127

128128
/// 64 bits label addition
129129
///
130130
/// Fixup expression:
131-
/// Fixup <- (Target - *{8}Fixup + Addend)
131+
/// Fixup <- (Target + *{8}Fixup + Addend)
132132
R_RISCV_ADD64,
133133

134134
/// 8 bits label subtraction

0 commit comments

Comments
 (0)