[lld] 81798d5 - [ELF] Sort sections in order. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 8 09:43:04 PST 2024


Author: Fangrui Song
Date: 2024-03-08T09:42:59-08:00
New Revision: 81798d516067a58c8e4ba51072dae7351d445064

URL: https://github.com/llvm/llvm-project/commit/81798d516067a58c8e4ba51072dae7351d445064
DIFF: https://github.com/llvm/llvm-project/commit/81798d516067a58c8e4ba51072dae7351d445064.diff

LOG: [ELF] Sort sections in order. NFC

Added: 
    

Modified: 
    lld/ELF/DWARF.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/DWARF.cpp b/lld/ELF/DWARF.cpp
index a56454c53a6d35..ac28aa8c7ca6e0 100644
--- a/lld/ELF/DWARF.cpp
+++ b/lld/ELF/DWARF.cpp
@@ -38,11 +38,11 @@ template <class ELFT> LLDDwarfObj<ELFT>::LLDDwarfObj(ObjFile<ELFT> *obj) {
                 .Case(".debug_addr", &addrSection)
                 .Case(".debug_gnu_pubnames", &gnuPubnamesSection)
                 .Case(".debug_gnu_pubtypes", &gnuPubtypesSection)
+                .Case(".debug_line", &lineSection)
                 .Case(".debug_loclists", &loclistsSection)
                 .Case(".debug_ranges", &rangesSection)
                 .Case(".debug_rnglists", &rnglistsSection)
                 .Case(".debug_str_offsets", &strOffsetsSection)
-                .Case(".debug_line", &lineSection)
                 .Default(nullptr)) {
       m->Data = toStringRef(sec->contentMaybeDecompress());
       m->sec = sec;


        


More information about the llvm-commits mailing list