diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-17 07:42:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-17 07:42:27 +0000 |
commit | de96c0f29c4cacabe6ea577c61db87c2a85aea6c (patch) | |
tree | 9b30fa0a09876615125d7cc11971f0601e2099cf /lib/Lex/TokenLexer.cpp | |
parent | 4448a0167806b9d2eb07f622f42f92de82e951ce (diff) |
make the verbose raw-lexer ctor fully explicit instead of having
embedded magic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/TokenLexer.cpp')
-rw-r--r-- | lib/Lex/TokenLexer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Lex/TokenLexer.cpp b/lib/Lex/TokenLexer.cpp index fde29359fd..7e56a43c44 100644 --- a/lib/Lex/TokenLexer.cpp +++ b/lib/Lex/TokenLexer.cpp @@ -392,11 +392,11 @@ bool TokenLexer::PasteTokens(Token &Tok) { SourceManager &SourceMgr = PP.getSourceManager(); const char *ResultStrData = SourceMgr.getCharacterData(ResultTokLoc); - const llvm::MemoryBuffer *Buffer = SourceMgr.getBuffer(ResultTokLoc); - // Make a lexer object so that we lex and expand the paste result. - Lexer TL(ResultTokLoc, PP.getLangOptions(), ResultStrData, - ResultStrData+LHSLen+RHSLen /*don't include null*/, Buffer); + Lexer TL(ResultTokLoc, PP.getLangOptions(), + SourceMgr.getBufferData(ResultTokLoc).first, + ResultStrData, + ResultStrData+LHSLen+RHSLen /*don't include null*/); // Lex a token in raw mode. This way it won't look up identifiers // automatically, lexing off the end will return an eof token, and |