diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-08 01:46:24 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-12-08 01:46:24 +0000 |
commit | e3fdca2ee0346a41d9cc5ee417a75e66274216f5 (patch) | |
tree | 172f10b3abd6d014f26fb0adb303e6137e54aeca /lib/CodeGen/CGDebugInfo.cpp | |
parent | b2debeb96da2b1d47ecffddbc35ade97b64af1c2 (diff) |
Remove several .c_str() to be forward-compatible with StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 2b823e0abb..56ee63f098 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -137,8 +137,8 @@ llvm::DICompileUnit CGDebugInfo::getOrCreateCompileUnit(SourceLocation Loc) { // Create new compile unit. return Unit = DebugFactory.CreateCompileUnit(LangTag, - AbsFileName.getLast().c_str(), - AbsFileName.getDirname().c_str(), + AbsFileName.getLast(), + AbsFileName.getDirname(), Producer.c_str(), isMain, isOptimized, Flags, RuntimeVers); } |