diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-18 00:19:10 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-18 00:19:10 +0000 |
commit | b3127bb06a9b2a95a587bbe555c2ea0d83e4eaba (patch) | |
tree | 1416ab3c1e06b814707967b874a70c2021984a6e /lib/Support/CommandLine.cpp | |
parent | 57e9104318a6b3b37f4c590b9229991600e1b0dc (diff) |
Support/PathV1: Deprecate getLast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 373a1a2c52..6f5d9dd428 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -505,7 +505,7 @@ void cl::ParseCommandLineOptions(int argc, char **argv, } // Copy the program name into ProgName, making sure not to overflow it. - std::string ProgName = sys::Path(argv[0]).getLast(); + std::string ProgName = sys::path::filename(argv[0]); size_t Len = std::min(ProgName.size(), size_t(79)); memcpy(ProgramName, ProgName.data(), Len); ProgramName[Len] = '\0'; |