summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-12-17 21:02:39 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-12-17 21:02:39 +0000
commit5908f1e27b6cd3c132d1e797889e3c8a279324ed (patch)
treeb15d62f4f3da05691408d78cfd8e272b8c365b04 /llvm/lib/CompilerDriver
parent03b5aed7d85d772f74fc7da64fd486c8ebaad6e6 (diff)
downloadbcm5719-llvm-5908f1e27b6cd3c132d1e797889e3c8a279324ed.tar.gz
bcm5719-llvm-5908f1e27b6cd3c132d1e797889e3c8a279324ed.zip
Make Path use StringRef instead of std::string where possible.
llvm-svn: 91620
Diffstat (limited to 'llvm/lib/CompilerDriver')
-rw-r--r--llvm/lib/CompilerDriver/CompilationGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CompilerDriver/CompilationGraph.cpp b/llvm/lib/CompilerDriver/CompilationGraph.cpp
index 3e6e050d686..56e5b9ce076 100644
--- a/llvm/lib/CompilerDriver/CompilationGraph.cpp
+++ b/llvm/lib/CompilerDriver/CompilationGraph.cpp
@@ -35,7 +35,7 @@ namespace llvmc {
const std::string& LanguageMap::GetLanguage(const sys::Path& File) const {
LanguageMap::const_iterator Lang = this->find(File.getSuffix());
if (Lang == this->end())
- throw std::runtime_error("Unknown suffix: " + File.getSuffix());
+ throw std::runtime_error(("Unknown suffix: " + File.getSuffix()).str());
return Lang->second;
}
}
OpenPOWER on IntegriCloud