forked from OSchip/llvm-project
4dc0b1ac60
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 |
||
---|---|---|
.. | ||
ArchHandler.cpp | ||
ArchHandler.h | ||
ArchHandler_arm.cpp | ||
ArchHandler_arm64.cpp | ||
ArchHandler_x86.cpp | ||
ArchHandler_x86_64.cpp | ||
Atoms.h | ||
CMakeLists.txt | ||
CompactUnwindPass.cpp | ||
DebugInfo.h | ||
ExecutableAtoms.h | ||
File.h | ||
FlatNamespaceFile.h | ||
GOTPass.cpp | ||
LayoutPass.cpp | ||
LayoutPass.h | ||
MachOLinkingContext.cpp | ||
MachONormalizedFile.h | ||
MachONormalizedFileBinaryReader.cpp | ||
MachONormalizedFileBinaryUtils.h | ||
MachONormalizedFileBinaryWriter.cpp | ||
MachONormalizedFileFromAtoms.cpp | ||
MachONormalizedFileToAtoms.cpp | ||
MachONormalizedFileYAML.cpp | ||
MachOPasses.h | ||
ObjCPass.cpp | ||
SectCreateFile.h | ||
ShimPass.cpp | ||
StubsPass.cpp | ||
TLVPass.cpp | ||
WriterMachO.cpp |