[lld] r322066 - [ELF] Add a comment for ARMExidxSentinelSection::Highest; Use "= nullptr" instead of "= 0". NFC.

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 01:44:28 PST 2018


Author: ikudrin
Date: Tue Jan  9 01:44:27 2018
New Revision: 322066

URL: http://llvm.org/viewvc/llvm-project?rev=322066&view=rev
Log:
[ELF] Add a comment for ARMExidxSentinelSection::Highest; Use "= nullptr" instead of "= 0". NFC.

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

Modified:
    lld/trunk/ELF/SyntheticSections.h

Modified: lld/trunk/ELF/SyntheticSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.h?rev=322066&r1=322065&r2=322066&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.h (original)
+++ lld/trunk/ELF/SyntheticSections.h Tue Jan  9 01:44:27 2018
@@ -790,7 +790,10 @@ public:
   void writeTo(uint8_t *Buf) override;
   bool empty() const override;
 
-  InputSection *Highest = 0;
+  // The last section referenced by a regular .ARM.exidx section.
+  // It is found and filled in Writer<ELFT>::resolveShfLinkOrder().
+  // The sentinel points at the end of that section.
+  InputSection *Highest = nullptr;
 };
 
 // A container for one or more linker generated thunks. Instances of these




More information about the llvm-commits mailing list