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 | 683f6db0b7f0475123f66887f333c40fb2d791a2 (patch) | |
tree | c9110d873bae8b9492936d8c1b079a2a43007bae /lib/CodeGen/CGDebugInfo.cpp | |
parent | 2263f822c31d0855ca8c48bfd9624322bf776f0b (diff) |
Use getLast() instead of getBasename().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98072 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index d04e274809..892669299c 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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. |