diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-10-22 14:00:07 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-10-22 14:39:18 +0200 |
commit | ff569ed03092dba39effcc45e81d64beff800bb5 (patch) | |
tree | d49d863280f2cf7b2c11e4a944995690478e65f3 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | |
parent | 43f8845dd371a842841a19aad063b735ff0c9ec2 (diff) | |
download | llvm-ff569ed03092dba39effcc45e81d64beff800bb5.zip llvm-ff569ed03092dba39effcc45e81d64beff800bb5.tar.gz llvm-ff569ed03092dba39effcc45e81d64beff800bb5.tar.bz2 |
[lldb] [Utility/UriParser] Replace port==-1 with llvm::None
Use llvm::Optional<uint16_t> instead of int for port number
in UriParser::Parse(), and use llvm::None to indicate missing port
instead of a magic value of -1.
Differential Revision: https://reviews.llvm.org/D112309
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp index 2080e09..b1e9e3c 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp @@ -39,7 +39,6 @@ #include "lldb/Utility/State.h" #include "lldb/Utility/StreamString.h" #include "lldb/Utility/UnimplementedError.h" -#include "lldb/Utility/UriParser.h" #include "llvm/ADT/Triple.h" #include "llvm/Support/JSON.h" #include "llvm/Support/ScopedPrinter.h" |