[lld] r275003 - Update comments.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 9 16:16:00 PDT 2016


Author: ruiu
Date: Sat Jul  9 18:16:00 2016
New Revision: 275003

URL: http://llvm.org/viewvc/llvm-project?rev=275003&view=rev
Log:
Update comments.

Modified:
    lld/trunk/ELF/Thunks.cpp

Modified: lld/trunk/ELF/Thunks.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Thunks.cpp?rev=275003&r1=275002&r2=275003&view=diff
==============================================================================
--- lld/trunk/ELF/Thunks.cpp (original)
+++ lld/trunk/ELF/Thunks.cpp Sat Jul  9 18:16:00 2016
@@ -7,12 +7,18 @@
 //
 //===---------------------------------------------------------------------===//
 //
-// This file contains both the Target independent and Target specific Thunk
-// classes
+// This file contains Thunk subclasses.
+//
+// A thunk is a small piece of code written after an input section
+// which is used to jump between "incompatible" functions
+// such as MIPS PIC and non-PIC or ARM non-Thumb and Thumb functions.
+//
+// If a jump target is too far and its address doesn't fit to a
+// short jump instruction, we need to create a thunk too, but we
+// haven't supported it yet.
+//
+// i386 and x86-64 don't need thunks.
 //
-// A Thunk Object represents a single Thunk that will be written to an
-// InputSection when the InputSection contents are written. The InputSection
-// maintains a list of Thunks that it owns.
 //===---------------------------------------------------------------------===//
 
 #include "Thunks.h"




More information about the llvm-commits mailing list