diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-09 19:14:07 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-09 19:14:07 +0000 |
commit | f2aa7078954c5c7cca74cc1cc2cc61844e2b88bf (patch) | |
tree | 740ae4a8f0180be6c1fab38007fdc60c3c727802 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 31f275e63cff3c9534c37a6c26f48e179725b299 (diff) | |
download | bcm5719-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.cpp | 2 |
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. |