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 | b36523a4d545b63f60e0cbc3b1ef7842eb157982 (patch) | |
tree | 7debf4e6f69213f00f713215844f951a4f087b07 /lib/CompilerDriver/CompilationGraph.cpp | |
parent | 177caff1efcac9750f5ac50f77e9c459cb825621 (diff) | |
download | external_llvm-b36523a4d545b63f60e0cbc3b1ef7842eb157982.zip external_llvm-b36523a4d545b63f60e0cbc3b1ef7842eb157982.tar.gz external_llvm-b36523a4d545b63f60e0cbc3b1ef7842eb157982.tar.bz2 |
Make Path use StringRef instead of std::string where possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CompilerDriver/CompilationGraph.cpp')
-rw-r--r-- | lib/CompilerDriver/CompilationGraph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index 3e6e050..56e5b9c 100644 --- a/lib/CompilerDriver/CompilationGraph.cpp +++ b/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; } } |