diff options
| author | Michał Górny <mgorny@moritz.systems> | 2021-09-24 10:28:58 +0200 | 
|---|---|---|
| committer | Michał Górny <mgorny@moritz.systems> | 2021-09-24 14:58:02 +0200 | 
| commit | 5f1c8d8a432deacfeada5e5a3794d0c938171c37 (patch) | |
| tree | 4e823b5b1c48aab8277fff89f2d6eb6fbffcf240 /llvm/lib/Bitcode/Writer/BitWriter.cpp | |
| parent | 8e4f7b749c2c03809f022c95698686c8584097fc (diff) | |
| download | llvm-5f1c8d8a432deacfeada5e5a3794d0c938171c37.zip llvm-5f1c8d8a432deacfeada5e5a3794d0c938171c37.tar.gz llvm-5f1c8d8a432deacfeada5e5a3794d0c938171c37.tar.bz2 | |
[lldb] [Host] Refactor Socket::DecodeHostAndPort() to use LLVM API
Refactor Socket::DecodeHostAndPort() to use LLVM API over redundant
LLDB API.  In particular, this means llvm::Regex, llvm::Error return
type and llvm::to_integer().
While at it, change the port type from int32_t to uint16_t.  The method
never returns any value outside this range, and using the correct type
allows us to rely on getAsInteger()'s implicit overflow check.
Differential Revision: https://reviews.llvm.org/D110391
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitWriter.cpp')
0 files changed, 0 insertions, 0 deletions
