diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-16 14:14:31 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-16 14:14:31 +0000 |
commit | eb92dc0b09262ed29149bf4faaa74a38df738cec (patch) | |
tree | 89b03c6567597b8a33fba0e7e446cd55fe674d9a /clang/lib/AST/ASTContext.cpp | |
parent | 0eb690390d35371c791d4076bdac973643f0de41 (diff) | |
download | bcm5719-llvm-eb92dc0b09262ed29149bf4faaa74a38df738cec.tar.gz bcm5719-llvm-eb92dc0b09262ed29149bf4faaa74a38df738cec.zip |
Let SourceManager::getBufferData return StringRef instead of a pair of two const char*.
llvm-svn: 98630
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |