summaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-26 05:03:40 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-26 05:03:40 +0000
commitac1db6b2bde50e9a0f3846243f654f6c13682725 (patch)
tree63876607cd633b9a02b2ddda3b39754d9f400269 /lib/Frontend/CompilerInvocation.cpp
parent48955f8119261c47cac564d1b6976c8f6441800a (diff)
downloadclang-ac1db6b2bde50e9a0f3846243f654f6c13682725.tar.gz
clang-ac1db6b2bde50e9a0f3846243f654f6c13682725.tar.bz2
clang-ac1db6b2bde50e9a0f3846243f654f6c13682725.tar.xz
Use llvm::sys::fs::getMainExecutable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 4986dac005..49ce0b7f82 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/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