diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-11-28 17:02:07 +0100 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-12-04 10:49:25 +0100 |
| commit | 28e4942b2c3b8961b91b362b4b76b9ca0f735cc2 (patch) | |
| tree | 3e20ed9cbdfb907f0d0d8ef099fc149175167fe0 /lldb/source/Utility | |
| parent | 16d20130444c9601ad276a8e82f79b2ac204c6f6 (diff) | |
| download | bcm5719-llvm-28e4942b2c3b8961b91b362b4b76b9ca0f735cc2.tar.gz bcm5719-llvm-28e4942b2c3b8961b91b362b4b76b9ca0f735cc2.zip | |
[lldb] Remove FileSpec(FileSpec*) constructor
This constructor was the cause of some pretty weird behavior. Remove it,
and update all code to properly dereference the argument instead.
Diffstat (limited to 'lldb/source/Utility')
| -rw-r--r-- | lldb/source/Utility/FileSpec.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/lldb/source/Utility/FileSpec.cpp b/lldb/source/Utility/FileSpec.cpp index de4714282ad..a9e542991f1 100644 --- a/lldb/source/Utility/FileSpec.cpp +++ b/lldb/source/Utility/FileSpec.cpp @@ -75,15 +75,6 @@ FileSpec::FileSpec(llvm::StringRef path, Style style) : m_style(style) { FileSpec::FileSpec(llvm::StringRef path, const llvm::Triple &triple) : FileSpec{path, triple.isOSWindows() ? Style::windows : Style::posix} {} -// Copy constructor -FileSpec::FileSpec(const FileSpec *rhs) : m_directory(), m_filename() { - if (rhs) - *this = *rhs; -} - -// Virtual destructor in case anyone inherits from this class. -FileSpec::~FileSpec() {} - namespace { /// Safely get a character at the specified index. /// |

