mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 17:01:00 +08:00
Add a comment about subtracting two non abs symbols. NFC.
llvm-svn: 321458
This commit is contained in:
@@ -151,6 +151,7 @@ static ExprValue add(ExprValue A, ExprValue B) {
|
||||
}
|
||||
|
||||
static ExprValue sub(ExprValue A, ExprValue B) {
|
||||
// The distance between two symbols in sections is absolute.
|
||||
if (!A.isAbsolute() && !B.isAbsolute())
|
||||
return A.getValue() - B.getValue();
|
||||
return {A.Sec, false, A.getSectionOffset() - B.getValue(), A.Loc};
|
||||
|
||||
Reference in New Issue
Block a user