[lld] 9b2b327 - [LLD] [ELF] Fix up a comment regarding the --wrap option. NFC.

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 23:40:42 PDT 2020


Author: Martin Storsjö
Date: 2020-10-08T09:33:23+03:00
New Revision: 9b2b32743d71311eeb713ace2550c0039e2491a2

URL: https://github.com/llvm/llvm-project/commit/9b2b32743d71311eeb713ace2550c0039e2491a2
DIFF: https://github.com/llvm/llvm-project/commit/9b2b32743d71311eeb713ace2550c0039e2491a2.diff

LOG: [LLD] [ELF] Fix up a comment regarding the --wrap option. NFC.

Add missing leading underscores to the __wrap_<symbol> and
__real_<symbol> names.

Differential Revision: https://reviews.llvm.org/D89008

Added: 
    

Modified: 
    lld/ELF/Driver.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index fa39628a2143..6aca2306d1e9 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -1837,9 +1837,9 @@ template <class ELFT> void LinkerDriver::compileBitcodeFiles() {
 
 // The --wrap option is a feature to rename symbols so that you can write
 // wrappers for existing functions. If you pass `-wrap=foo`, all
-// occurrences of symbol `foo` are resolved to `wrap_foo` (so, you are
-// expected to write `wrap_foo` function as a wrapper). The original
-// symbol becomes accessible as `real_foo`, so you can call that from your
+// occurrences of symbol `foo` are resolved to `__wrap_foo` (so, you are
+// expected to write `__wrap_foo` function as a wrapper). The original
+// symbol becomes accessible as `__real_foo`, so you can call that from your
 // wrapper.
 //
 // This data structure is instantiated for each -wrap option.


        


More information about the llvm-commits mailing list