Revert r122143 through r122140, which collectively broke the LLVMC tests on
[oota-llvm.git] / lib / CompilerDriver / CompilationGraph.cpp
index 0e8f5d599c2e73b0657d580047abd9ba07c6bdfe..87a2c4817a842487c8d260d2ac18ba7976c4a632 100644 (file)
@@ -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()) {