[PATCH] D113716: sys::path: Detect posix paths starting with ~ as absolute
Adrian Prantl via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 11 14:31:57 PST 2021
aprantl created this revision.
aprantl added reviewers: kastiglione, rastogishubham, dblaikie, probinson, labath, hubert.reinterpretcast, mstorsjo, rnk.
aprantl added a project: debug-info.
Herald added subscribers: dexonsmith, cmtice, hiraditya.
Herald added a reviewer: jhenderson.
aprantl requested review of this revision.
Herald added subscribers: sstefan1, MaskRay.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
Turns out there is more than one way a POSIX path can be absolute. Paths starting with ~, such as ~user, or ~/.git are also absolute paths, or at least not relative paths.
Without this, llvm-dwarfdump will append the working directory to paths starting with ~, resulting in paths like ~user/~user.
https://reviews.llvm.org/D113716
Files:
llvm/lib/Support/Path.cpp
llvm/test/tools/llvm-dwarfdump/AArch64/tilde.s
llvm/unittests/Support/Path.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D113716.386666.patch
Type: text/x-patch
Size: 12204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211111/5cec5710/attachment.bin>
More information about the llvm-commits
mailing list