Skip to content

Commit ec6bff9

Browse files
committed
Clarify the description of computeAddress()
1 parent 5a7414c commit ec6bff9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bolt/include/bolt/Core/MCInstUtils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ class MCInstReference {
8888
return nullptr;
8989
}
9090

91-
/// Computes the address of the instruction (or offset from base for PIC).
91+
/// Computes the original address of the instruction (or offset from base
92+
/// for PIC), assuming the containing function was not modified.
9293
///
9394
/// This function is intended for the use cases like debug printing, as it
9495
/// is only as precise as BinaryContext::computeCodeSize() is and requires

0 commit comments

Comments
 (0)