forked from OSchip/llvm-project
ARMDefines.h: fix -Wimplicit-fallthrough in -DLLVM_ENABLE_ASSERTIONS=OFF builds
Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D61844 llvm-svn: 360646
This commit is contained in:
parent
4fb6fcacf4
commit
6c780b62f0
|
@ -9,6 +9,8 @@
|
||||||
#ifndef lldb_ARMDefines_h_
|
#ifndef lldb_ARMDefines_h_
|
||||||
#define lldb_ARMDefines_h_
|
#define lldb_ARMDefines_h_
|
||||||
|
|
||||||
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
|
@ -68,8 +70,6 @@ typedef enum {
|
||||||
|
|
||||||
static inline const char *ARMCondCodeToString(uint32_t CC) {
|
static inline const char *ARMCondCodeToString(uint32_t CC) {
|
||||||
switch (CC) {
|
switch (CC) {
|
||||||
default:
|
|
||||||
assert(0 && "Unknown condition code");
|
|
||||||
case COND_EQ:
|
case COND_EQ:
|
||||||
return "eq";
|
return "eq";
|
||||||
case COND_NE:
|
case COND_NE:
|
||||||
|
@ -101,6 +101,7 @@ static inline const char *ARMCondCodeToString(uint32_t CC) {
|
||||||
case COND_AL:
|
case COND_AL:
|
||||||
return "al";
|
return "al";
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Unknown condition code");
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline bool ARMConditionPassed(const uint32_t condition,
|
static inline bool ARMConditionPassed(const uint32_t condition,
|
||||||
|
|
Loading…
Reference in New Issue