diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-18 19:32:16 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-18 19:32:16 +0000 |
commit | 3093b20d824a953d8bc7a786dd952414898f8d6d (patch) | |
tree | 03754db02ab0c0c437ca9d6e04e1f3de656a16b5 /include/clang/Lex/Lexer.h | |
parent | 6e629882ea67dbcd4dd2b0ccf636d2f758b86284 (diff) |
Lexer::ReadToEndOfLine: Only build the string if it's actually used and do so in a less malloc-intensive way.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157064 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Lexer.h')
-rw-r--r-- | include/clang/Lex/Lexer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/Lex/Lexer.h b/include/clang/Lex/Lexer.h index 4878123d1b..e96e1d7cb7 100644 --- a/include/clang/Lex/Lexer.h +++ b/include/clang/Lex/Lexer.h @@ -200,7 +200,7 @@ public: /// ReadToEndOfLine - Read the rest of the current preprocessor line as an /// uninterpreted string. This switches the lexer out of directive mode. - std::string ReadToEndOfLine(); + void ReadToEndOfLine(SmallVectorImpl<char> *Result = 0); /// Diag - Forwarding function for diagnostics. This translate a source |