Let SourceManager::getBufferData return StringRef instead of a pair of two const char*.

llvm-svn: 98630
This commit is contained in:
Benjamin Kramer
2010-03-16 14:14:31 +00:00
parent 0eb690390d
commit eb92dc0b09
11 changed files with 34 additions and 44 deletions

View File

@@ -44,7 +44,7 @@ void html::HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E,
EOffset += Lexer::MeasureTokenLength(E, R.getSourceMgr(), R.getLangOpts());
bool Invalid = false;
const char *BufferStart = SM.getBufferData(FID, &Invalid).first;
const char *BufferStart = SM.getBufferData(FID, &Invalid).data();
if (Invalid)
return;