diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-18 22:23:07 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-12-18 22:23:07 +0000 |
commit | ca93d8406dd2484e580747623356f9cd9221cacb (patch) | |
tree | 42e216805bc9162fcca9e66bb9ca2d229f57e066 /llvm/tools/llvm-ld/llvm-ld.cpp | |
parent | 6b8b4855ff12696f20eb0e48375134ae92dbccd7 (diff) | |
download | bcm5719-llvm-ca93d8406dd2484e580747623356f9cd9221cacb.tar.gz bcm5719-llvm-ca93d8406dd2484e580747623356f9cd9221cacb.zip |
Support/PathV1: Deprecate get{Basename,Dirname,Suffix}.
llvm-svn: 122157
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | llvm/tools/llvm-ld/llvm-ld.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index 445366c0f73..475fcf4d8ac 100644 --- a/llvm/tools/llvm-ld/llvm-ld.cpp +++ b/llvm/tools/llvm-ld/llvm-ld.cpp @@ -526,7 +526,7 @@ int main(int argc, char **argv, char **envp) { initializeTarget(Registry); // Initial global variable above for convenience printing of program name. - progname = sys::Path(argv[0]).getBasename(); + progname = sys::path::stem(argv[0]); // Parse the command line options cl::ParseCommandLineOptions(argc, argv, "llvm linker\n"); @@ -538,11 +538,8 @@ int main(int argc, char **argv, char **envp) { OutputFilename = "a.exe"; // If there is no suffix add an "exe" one. - sys::Path ExeFile( OutputFilename ); - if (ExeFile.getSuffix() == "") { - ExeFile.appendSuffix("exe"); - OutputFilename = ExeFile.str(); - } + if (sys::path::extension(OutputFilename).empty()) + OutputFilename.append(".exe"); } #endif |