[lld] r317469 - [ELF] Fix typo in comment for getISDThunkSec [NFC]

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 02:36:18 PST 2017


Author: psmith
Date: Mon Nov  6 02:36:18 2017
New Revision: 317469

URL: http://llvm.org/viewvc/llvm-project?rev=317469&view=rev
Log:
[ELF] Fix typo in comment for getISDThunkSec [NFC]

The ISR in the comment should read ISD for InputSectionDescription. The use
of ISR (InputSectionRange) was from the original implementation that did not
use the sections from InputSectionDescription directly.


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=317469&r1=317468&r2=317469&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Mon Nov  6 02:36:18 2017
@@ -1184,7 +1184,7 @@ void ThunkCreator::mergeThunks(ArrayRef<
 }
 
 // Find or create a ThunkSection within the InputSectionDescription (ISD) that
-// is in range of Src. An ISR maps to a range of InputSections described by a
+// is in range of Src. An ISD maps to a range of InputSections described by a
 // linker script section pattern such as { .text .text.* }.
 ThunkSection *ThunkCreator::getISDThunkSec(OutputSection *OS, InputSection *IS,
                                            InputSectionDescription *ISD,




More information about the llvm-commits mailing list