llvm-project/lld/MachO
Martin Storsjö 59c6f418fa [LLD] [MachO] Fix GCC build warnings
This fixes the following warnings produced by GCC 9:

    ../tools/lld/MachO/Arch/ARM64.cpp: In member function ‘void {anonymous}::OptimizationHintContext::applyAdrpLdr(const lld::macho::OptimizationHint&)’:
    ../tools/lld/MachO/Arch/ARM64.cpp:448:18: warning: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘uint64_t’ {aka ‘long unsigned int’} [-Wsign-compare]
      448 |   if (ldr.offset != (rel1->referentVA & 0xfff))
          |       ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../tools/lld/MachO/UnwindInfoSection.cpp: In function ‘bool canFoldEncoding(compact_unwind_encoding_t)’:
    ../tools/lld/MachO/UnwindInfoSection.cpp:404:44: warning: comparison between ‘enum<unnamed>’ and ‘enum<unnamed>’ [-Wenum-compare]
      404 |   static_assert(UNWIND_X86_64_MODE_MASK == UNWIND_X86_MODE_MASK, "");
          |                                            ^~~~~~~~~~~~~~~~~~~~
    ../tools/lld/MachO/UnwindInfoSection.cpp:405:49: warning: comparison between ‘enum<unnamed>’ and ‘enum<unnamed>’ [-Wenum-compare]
      405 |   static_assert(UNWIND_X86_64_MODE_STACK_IND == UNWIND_X86_MODE_STACK_IND, "");
          |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~

Differential Revision: https://reviews.llvm.org/D130970
2022-08-03 00:14:39 +03:00
..
Arch [LLD] [MachO] Fix GCC build warnings 2022-08-03 00:14:39 +03:00
CMakeLists.txt [lld-macho][reland] Initial support for EH Frames 2022-06-13 07:45:16 -04:00
ConcatOutputSection.cpp Replace to_hexString by touhexstr [NFC] 2022-06-16 17:29:50 +02:00
ConcatOutputSection.h [lld-macho][nfc] Give non-text ConcatOutputSections order-independent finalization 2022-04-07 18:13:27 -04:00
Config.h [lld] Change vector to SmallVector. NFC 2022-07-30 18:11:21 -07:00
Driver.cpp [lld-macho] Allow linking with ABI compatible architectures 2022-07-28 17:16:32 -07:00
Driver.h [lld/mac] For catalyst outputs, tolerate implicitly linking against mac-only tbd files 2022-04-23 21:43:46 -04:00
DriverUtils.cpp [lld/mac] Add support for $ld$previous symbols with explicit symbol name 2022-07-28 20:35:48 -04:00
Dwarf.cpp [lld-macho] Support creating N_SO stab for DWARF5 compile units 2022-07-28 09:58:26 +02:00
Dwarf.h [lld-macho] Support creating N_SO stab for DWARF5 compile units 2022-07-28 09:58:26 +02:00
EhFrame.cpp [lld-macho] Support EH frame pointer encodings that use sdata4 2022-07-31 20:16:33 -04:00
EhFrame.h [lld-macho] Support EH frame pointer encodings that use sdata4 2022-07-31 20:16:33 -04:00
ExportTrie.cpp Reland "[lld-macho] Avoid using bump-alloc in TrieBuider"" 2022-03-14 19:33:13 -04:00
ExportTrie.h Reland "[lld-macho] Avoid using bump-alloc in TrieBuider"" 2022-03-14 19:33:13 -04:00
ICF.cpp [lld-macho] Fold cfstrings with --deduplicate-literals 2022-07-20 11:11:09 -07:00
ICF.h [lld-macho] Fold cfstrings with --deduplicate-literals 2022-07-20 11:11:09 -07:00
InputFiles.cpp [lld-macho] Support EH frame pointer encodings that use sdata4 2022-07-31 20:16:33 -04:00
InputFiles.h [lld/mac] Add support for $ld$previous symbols with explicit symbol name 2022-07-28 20:35:48 -04:00
InputSection.cpp [lld-macho] Demangle location name in undefined symbol diagnostics 2022-07-25 18:42:16 +02:00
InputSection.h [lld-macho] Support creating N_SO stab for DWARF5 compile units 2022-07-28 09:58:26 +02:00
LTO.cpp [lld-macho] Handle filename being passed in -lto_object_path 2022-07-16 21:46:47 +02:00
LTO.h [lld-macho] Add LTO cache support 2021-07-15 12:56:13 -04:00
MachOStructs.h [lld-macho] Add support for arm64_32 2021-04-15 21:16:33 -04:00
MapFile.cpp Rename parallelForEachN to just parallelFor 2022-06-19 17:49:00 -04:00
MapFile.h [lld-macho] implement options -map 2021-03-18 10:39:19 -04:00
MarkLive.cpp [lld-macho][nfc] Run clang-format on lld/MachO/*.{h,cpp} 2022-05-24 08:36:20 +07:00
MarkLive.h [lld/mac] Implement -dead_strip 2021-06-02 11:09:26 -04:00
ObjC.cpp [lld/macho] Fixes the -ObjC flag 2022-05-11 17:00:39 -07:00
ObjC.h
Options.td [lld] Fixed a number of typos 2022-08-02 09:52:31 -04:00
OutputSection.cpp [lld-macho][nfc] Run clang-format on lld/MachO/*.{h,cpp} 2022-05-24 08:36:20 +07:00
OutputSection.h [lld-macho][nfc] Comments and style fixes 2022-02-01 13:45:59 -05:00
OutputSegment.cpp [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
OutputSegment.h [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
Relocations.cpp [lld-macho] Have relocation address included in range-check error message 2022-02-28 21:56:38 -05:00
Relocations.h [lld-macho] Initial support for Linker Optimization Hints 2022-06-30 06:28:42 +02:00
SectionPriorities.cpp Use value instead of getValue (NFC) 2022-07-15 20:03:13 -07:00
SectionPriorities.h [lld-macho][NFC] Encapsulate symbol priority implementation. 2022-03-31 13:47:38 -04:00
SymbolTable.cpp [lld-macho] Add support for -alias 2022-07-19 13:55:56 -07:00
SymbolTable.h [lld-macho] Add support for -alias 2022-07-19 13:55:56 -07:00
Symbols.cpp [lld-macho] Use source information in duplicate symbol errors 2022-06-23 11:07:15 -04:00
Symbols.h [lld-macho] Use source information in duplicate symbol errors 2022-06-23 11:07:15 -04:00
SyntheticSections.cpp [lld-macho][nfc] Reduce nesting of code added in D130125 2022-07-23 13:16:00 -04:00
SyntheticSections.h Remove redundaunt override specifiers (NFC) 2022-07-24 22:28:11 -07:00
Target.cpp [lld-macho][nfc] Create Relocations.{h,cpp} for relocation-specific code 2021-03-11 13:28:09 -05:00
Target.h [lld-macho] Devirtualize TargetInfo::getRelocAttrs 2022-07-18 19:32:58 +02:00
UnwindInfoSection.cpp [LLD] [MachO] Fix GCC build warnings 2022-08-03 00:14:39 +03:00
UnwindInfoSection.h [lld-macho][nfc] De-templatize UnwindInfoSection 2022-04-13 16:19:22 -04:00
Writer.cpp [lld/mac] Add support for $ld$previous symbols with explicit symbol name 2022-07-28 20:35:48 -04:00
Writer.h [MachO] Properly reset global state 2021-10-31 16:14:29 -07:00
ld64-vs-lld.rst [lld-macho][nfc] Fix formatting in ld64-vs-lld.rst 2022-03-10 18:33:18 -05:00