diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-10-17 16:06:19 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-10-18 12:17:43 +0200 |
commit | d8bc7e40ce1cdd8c1a3fac7937ce1ea85c262728 (patch) | |
tree | ce1df9c6df3e63f97f497ff4aee7d4c63e2315d2 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | baad10c09e44bb243d95821f6ea44641cfa94419 (diff) | |
download | llvm-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