[Lldb-commits] [PATCH] D47495: Support relative paths with less than two components in DBGSourcePathRemapping
Greg Clayton via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue May 29 14:38:38 PDT 2018
clayborg requested changes to this revision.
clayborg added a comment.
This revision now requires changes to proceed.
Remove the argument since we don't need it. Just assume we keep ".".
================
Comment at: include/lldb/Utility/FileSpec.h:535
- void RemoveLastPathComponent();
+ void RemoveLastPathComponent(bool keep_dot = false);
----------------
Why add this? If the path is just "." to begin with, there is nothing to do. I would vote to not add this argument since we don't need it. Add it back if we ever do.
================
Comment at: source/Host/macosx/Symbols.cpp:412-415
+ build_path.RemoveLastPathComponent(true);
+ build_path.RemoveLastPathComponent(true);
+ source_path.RemoveLastPathComponent(true);
+ source_path.RemoveLastPathComponent(true);
----------------
revert
================
Comment at: source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp:263-266
+ build_path.RemoveLastPathComponent(true);
+ build_path.RemoveLastPathComponent(true);
+ source_path.RemoveLastPathComponent(true);
+ source_path.RemoveLastPathComponent(true);
----------------
revert
================
Comment at: source/Utility/FileSpec.cpp:788
-void FileSpec::RemoveLastPathComponent() {
+void FileSpec::RemoveLastPathComponent(bool keep_dot) {
// CLEANUP: Use StringRef for string handling.
----------------
Remove arg.
https://reviews.llvm.org/D47495
More information about the lldb-commits
mailing list