diff options
| author | Owen Anderson <resistor@mac.com> | 2010-12-18 07:37:18 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2010-12-18 07:37:18 +0000 |
| commit | c15ab07cffcbca4a37334d5bfafcdd141e253f09 (patch) | |
| tree | a3ca76b0ae4f20bf4e0aa8fe97b14d65e693da3c /llvm/lib/CompilerDriver/CompilationGraph.cpp | |
| parent | b403e098a125ef10e206a1de5a850bf73034b330 (diff) | |
| download | bcm5719-llvm-c15ab07cffcbca4a37334d5bfafcdd141e253f09.tar.gz bcm5719-llvm-c15ab07cffcbca4a37334d5bfafcdd141e253f09.zip | |
Revert r122143 through r122140, which collectively broke the LLVMC tests on
the buildbots.
llvm-svn: 122149
Diffstat (limited to 'llvm/lib/CompilerDriver/CompilationGraph.cpp')
| -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 0e8f5d599c2..87a2c4817a8 100644 --- a/llvm/lib/CompilerDriver/CompilationGraph.cpp +++ b/llvm/lib/CompilerDriver/CompilationGraph.cpp @@ -32,7 +32,7 @@ using namespace llvmc; namespace llvmc { const std::string* LanguageMap::GetLanguage(const sys::Path& File) const { - StringRef suf = sys::path::extension(File.str()); + StringRef suf = File.getSuffix(); LanguageMap::const_iterator Lang = this->find(suf.empty() ? "*empty*" : suf); if (Lang == this->end()) { |

