summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Lexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-22 06:22:39 +0000
committerChris Lattner <sabre@nondot.org>2008-11-22 06:22:39 +0000
commit014156e1088dfd2f76048c5427665bc6878ef504 (patch)
treed353cd8a217cef9759633e8c5b5ec39dbb12c044 /clang/lib/Lex/Lexer.cpp
parent57dab26be1a1e180963b51c631e655d022f14413 (diff)
downloadbcm5719-llvm-014156e1088dfd2f76048c5427665bc6878ef504.tar.gz
bcm5719-llvm-014156e1088dfd2f76048c5427665bc6878ef504.zip
actually, this version isn't really needed.
llvm-svn: 59859
Diffstat (limited to 'clang/lib/Lex/Lexer.cpp')
-rw-r--r--clang/lib/Lex/Lexer.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Lex/Lexer.cpp b/clang/lib/Lex/Lexer.cpp
index cef848f073e..b4d0717cd78 100644
--- a/clang/lib/Lex/Lexer.cpp
+++ b/clang/lib/Lex/Lexer.cpp
@@ -313,11 +313,6 @@ DiagnosticBuilder Lexer::Diag(const char *Loc, unsigned DiagID) const {
return PP->Diag(getSourceLocation(Loc), DiagID);
}
-DiagnosticBuilder Lexer::Diag(SourceLocation Loc, unsigned DiagID) const {
- return PP->Diag(Loc, DiagID);
-}
-
-
//===----------------------------------------------------------------------===//
// Trigraph and Escaped Newline Handling Code.
//===----------------------------------------------------------------------===//
@@ -1153,7 +1148,8 @@ bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) {
// If we are in a #if directive, emit an error.
while (!ConditionalStack.empty()) {
- Diag(ConditionalStack.back().IfLoc, diag::err_pp_unterminated_conditional);
+ PP->Diag(ConditionalStack.back().IfLoc,
+ diag::err_pp_unterminated_conditional);
ConditionalStack.pop_back();
}
OpenPOWER on IntegriCloud