[lld] r298814 - Update comments.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 26 11:23:01 PDT 2017
Author: ruiu
Date: Sun Mar 26 13:23:00 2017
New Revision: 298814
URL: http://llvm.org/viewvc/llvm-project?rev=298814&view=rev
Log:
Update comments.
Modified:
lld/trunk/ELF/Relocations.cpp
Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=298814&r1=298813&r2=298814&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Sun Mar 26 13:23:00 2017
@@ -313,7 +313,7 @@ static bool isRelExpr(RelExpr Expr) {
//
// For instance, we know the offset from a relocation to its target at
// link-time if the relocation is PC-relative and refers a
-// (non-interruptible) function in the same executable. This function
+// non-interposable function in the same executable. This function
// will return true for such relocation.
//
// If this function returns false, that means we need to emit a
@@ -672,6 +672,9 @@ public:
}
}
+ // Translates offsets in input sections to offsets in output sections.
+ // Given offset must increase monotonically. We assume that P is
+ // sorted by InputOff.
uint64_t get(uint64_t Off) {
if (P.empty())
return Off;
More information about the llvm-commits
mailing list