[Lldb-commits] [lldb] r346553 - Remove llvm include from debugserver, change
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 9 12:31:41 PST 2018
Author: jmolenda
Date: Fri Nov 9 12:31:41 2018
New Revision: 346553
URL: http://llvm.org/viewvc/llvm-project?rev=346553&view=rev
Log:
Remove llvm include from debugserver, change
LLVM_FALLTHROUGH's to [[clang::fallthrough]] -
debugserver is only ever compiled on darwin
systems with clang.
Modified:
lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp
lldb/trunk/tools/debugserver/source/RNBRemote.cpp
Modified: lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp?rev=346553&r1=346552&r2=346553&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp (original)
+++ lldb/trunk/tools/debugserver/source/DNBRegisterInfo.cpp Fri Nov 9 12:31:41 2018
@@ -13,7 +13,6 @@
#include "DNBRegisterInfo.h"
#include "DNBLog.h"
-#include <llvm/Support/Compiler.h>
#include <string.h>
DNBRegisterValueClass::DNBRegisterValueClass(const DNBRegisterInfo *regInfo) {
@@ -157,7 +156,7 @@ void DNBRegisterValueClass::Dump(const c
DNBLogError(
"unsupported vector format %d, defaulting to hex bytes.",
info.format);
- LLVM_FALLTHROUGH;
+ [[clang::fallthrough]];
case VectorOfUInt8:
snprintf(str, sizeof(str), "%s", "uint8 { ");
pos = str + strlen(str);
Modified: lldb/trunk/tools/debugserver/source/RNBRemote.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/source/RNBRemote.cpp?rev=346553&r1=346552&r2=346553&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/source/RNBRemote.cpp (original)
+++ lldb/trunk/tools/debugserver/source/RNBRemote.cpp Fri Nov 9 12:31:41 2018
@@ -50,7 +50,6 @@
#include <zlib.h>
#endif
-#include <llvm/Support/Compiler.h>
#include <TargetConditionals.h> // for endianness predefines
#include <iomanip>
#include <sstream>
@@ -3691,7 +3690,7 @@ rnb_err_t RNBRemote::HandlePacket_v(cons
return HandlePacket_ILLFORMED(
__FILE__, __LINE__, p, "Could not parse signal in vCont packet");
// Fall through to next case...
- LLVM_FALLTHROUGH;
+ [[clang::fallthrough]];
case 'c':
// Continue
thread_action.state = eStateRunning;
@@ -3704,7 +3703,7 @@ rnb_err_t RNBRemote::HandlePacket_v(cons
return HandlePacket_ILLFORMED(
__FILE__, __LINE__, p, "Could not parse signal in vCont packet");
// Fall through to next case...
- LLVM_FALLTHROUGH;
+ [[clang::fallthrough]];
case 's':
// Step
thread_action.state = eStateStepping;
More information about the lldb-commits
mailing list