diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-18 04:13:32 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-18 04:13:32 +0000 |
commit | d5b08bee799d4f77f1a25fa5977ca77b983ab031 (patch) | |
tree | 426542f5871a92a87a6c0723bf9a46cb46b02f8d /tools/driver | |
parent | 2b364a43f50efd3d82177c29a79e66895ab335ad (diff) |
Replace all uses of PathV1::get{Basename,Dirname,Suffix} with their PathV2 equivalents.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver')
-rw-r--r-- | tools/driver/driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp index cd249c46dd..c88a7a3054 100644 --- a/tools/driver/driver.cpp +++ b/tools/driver/driver.cpp @@ -287,7 +287,7 @@ int main(int argc_, const char **argv_) { TextDiagnosticPrinter *DiagClient = new TextDiagnosticPrinter(llvm::errs(), DiagnosticOptions()); - DiagClient->setPrefix(Path.getBasename()); + DiagClient->setPrefix(llvm::sys::path::stem(Path.str())); llvm::IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs()); Diagnostic Diags(DiagID, DiagClient); @@ -331,7 +331,7 @@ int main(int argc_, const char **argv_) { // // We use *argv instead of argv[0] to work around a bogus g++ warning. const char *progname = argv_[0]; - std::string ProgName(llvm::sys::Path(progname).getBasename()); + std::string ProgName(llvm::sys::path::stem(progname)); if (llvm::StringRef(ProgName).endswith("++") || llvm::StringRef(ProgName).rsplit('-').first.endswith("++")) { TheDriver.CCCIsCXX = true; |