llvm-project/lld/lib/ReaderWriter/MachO
Reid Kleckner 4dc0b1ac60 Fix clang -Wimplicit-fallthrough warnings across llvm, NFC
This patch should not introduce any behavior changes. It consists of
mostly one of two changes:
1. Replacing fall through comments with the LLVM_FALLTHROUGH macro
2. Inserting 'break' before falling through into a case block consisting
   of only 'break'.

We were already using this warning with GCC, but its warning behaves
slightly differently. In this patch, the following differences are
relevant:
1. GCC recognizes comments that say "fall through" as annotations, clang
   doesn't
2. GCC doesn't warn on "case N: foo(); default: break;", clang does
3. GCC doesn't warn when the case contains a switch, but falls through
   the outer case.

I will enable the warning separately in a follow-up patch so that it can
be cleanly reverted if necessary.

Reviewers: alexfh, rsmith, lattner, rtrieu, EricWF, bollu

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

llvm-svn: 345882
2018-11-01 19:54:45 +00:00
..
ArchHandler.cpp
ArchHandler.h Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
ArchHandler_arm.cpp [MACH-O] Fix the ASM code generated for __stub_helpers section 2017-08-24 23:51:40 +00:00
ArchHandler_arm64.cpp [MACH-O] Fix the ASM code generated for __stub_helpers section 2017-08-24 23:51:40 +00:00
ArchHandler_x86.cpp [MACH-O] Fix the ASM code generated for __stub_helpers section 2017-08-24 23:51:40 +00:00
ArchHandler_x86_64.cpp Fix clang -Wimplicit-fallthrough warnings across llvm, NFC 2018-11-01 19:54:45 +00:00
Atoms.h Fix some Include What You Use warnings; other minor fixes. 2016-04-29 19:47:09 +00:00
CMakeLists.txt Fix -DBUILD_SHARED_LIBS=1 build 2018-06-12 14:51:18 +00:00
CompactUnwindPass.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
DebugInfo.h [MachO] Remove code accidentally cut'n'pasted 3 times. 2016-09-10 20:41:26 +00:00
ExecutableAtoms.h Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
File.h Change when we choose to add an LC_LOAD_DYLIB to the final image. 2016-08-11 20:10:14 +00:00
FlatNamespaceFile.h Make some headers modular by adding missing includes/forward decls. 2017-11-21 01:09:10 +00:00
GOTPass.cpp Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
LayoutPass.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
LayoutPass.h [lld][MachO] Remove SimpleFile::definedAtoms(). 2016-06-28 18:42:33 +00:00
MachOLinkingContext.cpp Fix clang -Wimplicit-fallthrough warnings across llvm, NFC 2018-11-01 19:54:45 +00:00
MachONormalizedFile.h MachONormalizedFile.h: Remove unimplemented function 2017-11-22 21:10:19 +00:00
MachONormalizedFileBinaryReader.cpp Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
MachONormalizedFileBinaryUtils.h MachO: Change getString16() back to inline function 2018-09-07 15:51:52 +00:00
MachONormalizedFileBinaryWriter.cpp Update for llvm change. 2017-11-08 01:50:34 +00:00
MachONormalizedFileFromAtoms.cpp Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
MachONormalizedFileToAtoms.cpp [lld] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:36:20 +00:00
MachONormalizedFileYAML.cpp [YAML] Fix mustQuote return type changed in r320996 2017-12-18 17:49:27 +00:00
MachOPasses.h
ObjCPass.cpp Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
SectCreateFile.h
ShimPass.cpp Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
StubsPass.cpp Move new lld's code to Common subdirectory. 2017-10-02 21:00:41 +00:00
TLVPass.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
WriterMachO.cpp Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00