aboutsummaryrefslogtreecommitdiff
path: root/tools/driver/driver.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-12-08 01:46:24 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-12-08 01:46:24 +0000
commite3fdca2ee0346a41d9cc5ee417a75e66274216f5 (patch)
tree172f10b3abd6d014f26fb0adb303e6137e54aeca /tools/driver/driver.cpp
parentb2debeb96da2b1d47ecffddbc35ade97b64af1c2 (diff)
Remove several .c_str() to be forward-compatible with StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/driver/driver.cpp')
-rw-r--r--tools/driver/driver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/driver/driver.cpp b/tools/driver/driver.cpp
index 527b5f3c0c..cfdd9c342a 100644
--- a/tools/driver/driver.cpp
+++ b/tools/driver/driver.cpp
@@ -212,8 +212,8 @@ int main(int argc, const char **argv) {
#else
bool IsProduction = false;
#endif
- Driver TheDriver(Path.getBasename().c_str(), Path.getDirname().c_str(),
- llvm::sys::getHostTriple().c_str(),
+ Driver TheDriver(Path.getBasename(), Path.getDirname(),
+ llvm::sys::getHostTriple(),
"a.out", IsProduction, Diags);
// Check for ".*++" or ".*++-[^-]*" to determine if we are a C++