aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorMichał Górny <mgorny@moritz.systems>2021-10-17 16:06:19 +0200
committerMichał Górny <mgorny@moritz.systems>2021-10-18 12:17:43 +0200
commitd8bc7e40ce1cdd8c1a3fac7937ce1ea85c262728 (patch)
treece1df9c6df3e63f97f497ff4aee7d4c63e2315d2 /llvm/lib/Transforms/Utils/Local.cpp
parentbaad10c09e44bb243d95821f6ea44641cfa94419 (diff)
downloadllvm-d8bc7e40ce1cdd8c1a3fac7937ce1ea85c262728.zip
llvm-d8bc7e40ce1cdd8c1a3fac7937ce1ea85c262728.tar.gz
llvm-d8bc7e40ce1cdd8c1a3fac7937ce1ea85c262728.tar.bz2
[lldb] [lldb-server] Refactor ConnectToRemote()
Refactor ConnectToRemote() to improve readability and make future changes easier: 1. Replace static buffers with std::string. 2. When handling errors, prefer reporting the actual error over dumb 'connection status is not success'. 3. Move host/port parsing directly into reverse_connection condition that is its only user, and simplify it to make its purpose (verifying that a valid port is provided) clear. 4. Use llvm::errs() and llvm::outs() instead of fprintf(). Differential Revision: https://reviews.llvm.org/D11196
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions