From 204b2fed909b1eabea7aeb6caadd7cff718edee5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 18 Nov 2008 21:48:13 +0000 Subject: Remove the last of the old-style Preprocessor::Diag methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59554 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Lex/Preprocessor.cpp | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'lib/Lex/Preprocessor.cpp') diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 2fe84c96bc..1f9df50db3 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -126,30 +126,6 @@ DiagnosticInfo Preprocessor::Diag(const Token &Tok, unsigned DiagID) { return Diags.Report(getFullLoc(Tok.getLocation()), DiagID); } - -void Preprocessor::Diag(SourceLocation Loc, unsigned DiagID, - const std::string &Msg) { - Diags.Report(getFullLoc(Loc), DiagID) << Msg; -} - -void Preprocessor::Diag(SourceLocation Loc, unsigned DiagID, - const std::string &Msg, - const SourceRange &R1, const SourceRange &R2) { - Diags.Report(getFullLoc(Loc), DiagID) << Msg << R1 << R2; -} - - -void Preprocessor::Diag(SourceLocation Loc, unsigned DiagID, - const SourceRange &R) { - Diags.Report(getFullLoc(Loc), DiagID) << R; -} - -void Preprocessor::Diag(SourceLocation Loc, unsigned DiagID, - const SourceRange &R1, const SourceRange &R2) { - Diags.Report(getFullLoc(Loc), DiagID) << R1 << R2; -} - - void Preprocessor::DumpToken(const Token &Tok, bool DumpFlags) const { llvm::cerr << tok::getTokenName(Tok.getKind()) << " '" << getSpelling(Tok) << "'"; -- cgit v1.2.3