From e3fdca2ee0346a41d9cc5ee417a75e66274216f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Tue, 8 Dec 2009 01:46:24 +0000 Subject: 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 --- lib/CodeGen/CGDebugInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGDebugInfo.cpp') 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); } -- cgit v1.2.3-18-g5258