From eb92dc0b09262ed29149bf4faaa74a38df738cec Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 16 Mar 2010 14:14:31 +0000 Subject: Let SourceManager::getBufferData return StringRef instead of a pair of two const char*. llvm-svn: 98630 --- clang/lib/AST/ASTContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/AST/ASTContext.cpp') diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 07243365bf4..8230cde3b2d 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -428,7 +428,7 @@ isDoxygenComment(SourceManager &SourceMgr, SourceRange Comment, bool Invalid = false; const char *BufferStart = SourceMgr.getBufferData(SourceMgr.getFileID(Comment.getBegin()), - &Invalid).first; + &Invalid).data(); if (Invalid) return false; @@ -495,7 +495,7 @@ const char *ASTContext::getCommentForDecl(const Decl *D) { = SourceMgr.getDecomposedLoc(DeclStartLoc); bool Invalid = false; const char *FileBufferStart - = SourceMgr.getBufferData(DeclStartDecomp.first, &Invalid).first; + = SourceMgr.getBufferData(DeclStartDecomp.first, &Invalid).data(); if (Invalid) return 0; -- cgit v1.2.3