summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2010-12-18 00:19:10 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2010-12-18 00:19:10 +0000
commit762a55b19f6a33ca0bb897a6cab35cc02739029a (patch)
treec363e4bb84d695ff48df491be412825d4e80b3c5 /llvm/lib/Support/CommandLine.cpp
parent8c8125d74fde77c1642d964eb0d1ed9ae2017a29 (diff)
downloadbcm5719-llvm-762a55b19f6a33ca0bb897a6cab35cc02739029a.tar.gz
bcm5719-llvm-762a55b19f6a33ca0bb897a6cab35cc02739029a.zip
Support/PathV1: Deprecate getLast.
llvm-svn: 122116
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 373a1a2c52a..6f5d9dd4281 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/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';
OpenPOWER on IntegriCloud