From 4f63507d054afab14e759f046db5f42e3b96f6fb Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Sat, 18 Dec 2010 04:13:36 +0000 Subject: Support/PathV1: Deprecate get{Basename,Dirname,Suffix}. llvm-svn: 122141 --- llvm/lib/CompilerDriver/CompilationGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CompilerDriver/CompilationGraph.cpp') diff --git a/llvm/lib/CompilerDriver/CompilationGraph.cpp b/llvm/lib/CompilerDriver/CompilationGraph.cpp index 87a2c48..0e8f5d5 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 = File.getSuffix(); + StringRef suf = sys::path::extension(File.str()); LanguageMap::const_iterator Lang = this->find(suf.empty() ? "*empty*" : suf); if (Lang == this->end()) { -- cgit v1.1