introduce the one true Diag method for Sema. Next up: kill all the others off.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59556 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/Sema.h b/lib/Sema/Sema.h
index 66c0138..014565d 100644
--- a/lib/Sema/Sema.h
+++ b/lib/Sema/Sema.h
@@ -237,9 +237,8 @@
const LangOptions &getLangOptions() const;
- /// The primitive diagnostic helpers - always returns true, which simplifies
- /// error handling (i.e. less code).
- bool Diag(SourceLocation Loc, unsigned DiagID);
+ /// The primitive diagnostic helpers.
+ DiagnosticInfo Diag(SourceLocation Loc, unsigned DiagID);
bool Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg);
bool Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg1,
const std::string &Msg2);