diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 05:03:40 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 05:03:40 +0000 |
commit | 9678d27140554f7ae0dbb674c5e5325ccdbc5bfa (patch) | |
tree | 7a048ff148b95bceb31cc9a8d0d13ee739d6d833 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e03dfd9b0a176d1f7cb0c662263a13a9c7c30b7e (diff) | |
download | llvm-9678d27140554f7ae0dbb674c5e5325ccdbc5bfa.zip llvm-9678d27140554f7ae0dbb674c5e5325ccdbc5bfa.tar.gz llvm-9678d27140554f7ae0dbb674c5e5325ccdbc5bfa.tar.bz2 |
Use llvm::sys::fs::getMainExecutable.
llvm-svn: 184915
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 4986dac..49ce0b7 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -29,6 +29,7 @@ #include "llvm/Option/OptTable.h" #include "llvm/Option/Option.h" #include "llvm/Support/ErrorHandling.h" +#include "llvm/Support/FileSystem.h" #include "llvm/Support/Host.h" #include "llvm/Support/Path.h" #include "llvm/Support/PathV1.h" @@ -845,7 +846,7 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args, std::string CompilerInvocation::GetResourcesPath(const char *Argv0, void *MainAddr) { - llvm::sys::Path P = llvm::sys::Path::GetMainExecutable(Argv0, MainAddr); + llvm::sys::Path P(llvm::sys::fs::getMainExecutable(Argv0, MainAddr)); if (!P.isEmpty()) { P.eraseComponent(); // Remove /clang from foo/bin/clang |