aboutsummaryrefslogtreecommitdiff
path: root/examples/clang-interpreter/main.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2010-07-24 17:59:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2010-07-24 17:59:51 +0000
commitfa9fe0c62aa42dff58365c8015baa6771b21f5ac (patch)
treed99bcd4a9c34ad588c7c58f423af2d5532742a01 /examples/clang-interpreter/main.cpp
parent5818f2280c145696cdb87afe7754c4ac9e4fb821 (diff)
Fix clang-interpreter build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109347 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/clang-interpreter/main.cpp')
-rw-r--r--examples/clang-interpreter/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/clang-interpreter/main.cpp b/examples/clang-interpreter/main.cpp
index ec4e861982..9557f31bd8 100644
--- a/examples/clang-interpreter/main.cpp
+++ b/examples/clang-interpreter/main.cpp
@@ -69,8 +69,7 @@ int main(int argc, const char **argv, char * const *envp) {
TextDiagnosticPrinter DiagClient(llvm::errs(), DiagnosticOptions());
Diagnostic Diags(&DiagClient);
- Driver TheDriver(Path.getBasename(), Path.getDirname(),
- llvm::sys::getHostTriple(),
+ Driver TheDriver(Path.str(), llvm::sys::getHostTriple(),
"a.out", /*IsProduction=*/false, /*CXXIsProduction=*/false,
Diags);
TheDriver.setTitle("clang interpreter");