aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/PTHLexer.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-19 22:21:33 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-19 22:21:33 +0000
commit17ff58a63197b398ae52697b088dc0fb8b255519 (patch)
tree3ec5398531f63a338509278b9d8ce6861047a0b0 /lib/Lex/PTHLexer.cpp
parent41938c8493b4380df738263166b746eacb33c309 (diff)
When using a PTHLexer, use DiscardToEndOfLine() instead of ReadToEndOfLine().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r--lib/Lex/PTHLexer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp
index d22285cae5..15d5603969 100644
--- a/lib/Lex/PTHLexer.cpp
+++ b/lib/Lex/PTHLexer.cpp
@@ -76,3 +76,10 @@ void PTHLexer::setEOF(Token& Tok) {
Tok = Tokens[NumTokens]; // NumTokens is already adjusted, so this isn't
// an overflow.
}
+
+void PTHLexer::DiscardToEndOfLine() {
+ assert(ParsingPreprocessorDirective && ParsingFilename == false &&
+ "Must be in a preprocessing directive!");
+
+ assert (0 && "Not implemented.");
+}