summaryrefslogtreecommitdiffstats
path: root/lld/ELF/InputSection.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2017-06-08 20:16:21 +0000
committerRui Ueyama <ruiu@google.com>2017-06-08 20:16:21 +0000
commit38a284166505b901d0b5733ea449e5a331b2094c (patch)
tree0304639bf25e781c99ef484f7f53083e01e6914b /lld/ELF/InputSection.cpp
parente2a428bad768ba4d60de28bd7ad8864fe111e891 (diff)
downloadbcm5719-llvm-38a284166505b901d0b5733ea449e5a331b2094c.tar.gz
bcm5719-llvm-38a284166505b901d0b5733ea449e5a331b2094c.zip
Use LLVM_FALLTHROUGH.
llvm-svn: 305010
Diffstat (limited to 'lld/ELF/InputSection.cpp')
-rw-r--r--lld/ELF/InputSection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp
index 4af05c1a187..18064cad9f3 100644
--- a/lld/ELF/InputSection.cpp
+++ b/lld/ELF/InputSection.cpp
@@ -20,6 +20,7 @@
#include "Target.h"
#include "Thunks.h"
#include "llvm/Object/Decompressor.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/Compression.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Path.h"
@@ -682,7 +683,7 @@ void InputSectionBase::relocateAlloc(uint8_t *Buf, uint8_t *BufEnd) {
// Patch a nop (0x60000000) to a ld.
if (BufLoc + 8 <= BufEnd && read32be(BufLoc + 4) == 0x60000000)
write32be(BufLoc + 4, 0xe8410028); // ld %r2, 40(%r1)
- // fallthrough
+ LLVM_FALLTHROUGH;
default:
Target->relocateOne(BufLoc, Type, TargetVA);
break;
OpenPOWER on IntegriCloud