summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-03-09 19:14:07 +0000
committerDevang Patel <dpatel@apple.com>2010-03-09 19:14:07 +0000
commitf2aa7078954c5c7cca74cc1cc2cc61844e2b88bf (patch)
tree740ae4a8f0180be6c1fab38007fdc60c3c727802 /clang/lib/CodeGen/CGDebugInfo.cpp
parent31f275e63cff3c9534c37a6c26f48e179725b299 (diff)
downloadbcm5719-llvm-f2aa7078954c5c7cca74cc1cc2cc61844e2b88bf.tar.gz
bcm5719-llvm-f2aa7078954c5c7cca74cc1cc2cc61844e2b88bf.zip
Use getLast() instead of getBasename().
llvm-svn: 98072
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index d04e2748098..892669299c6 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -97,7 +97,7 @@ llvm::DIFile CGDebugInfo::getOrCreateFile(SourceLocation Loc) {
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.
OpenPOWER on IntegriCloud