diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-17 21:02:39 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-17 21:02:39 +0000 |
commit | 5908f1e27b6cd3c132d1e797889e3c8a279324ed (patch) | |
tree | b15d62f4f3da05691408d78cfd8e272b8c365b04 /llvm/lib/CompilerDriver | |
parent | 03b5aed7d85d772f74fc7da64fd486c8ebaad6e6 (diff) | |
download | bcm5719-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.cpp | 2 |
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; } } |