[cfe-commits] r98072 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Tue Mar 9 11:14:07 PST 2010
Author: dpatel
Date: Tue Mar 9 13:14:07 2010
New Revision: 98072
URL: http://llvm.org/viewvc/llvm-project?rev=98072&view=rev
Log:
Use getLast() instead of getBasename().
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=98072&r1=98071&r2=98072&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Tue Mar 9 13:14:07 2010
@@ -97,7 +97,7 @@
llvm::sys::Path AbsFileName(PLoc.getFilename());
AbsFileName.makeAbsolute();
- return DebugFactory.CreateFile(AbsFileName.getBasename(),
+ return DebugFactory.CreateFile(AbsFileName.getLast(),
AbsFileName.getDirname(), TheCU);
}
/// CreateCompileUnit - Create new compile unit.
More information about the cfe-commits
mailing list