aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-18 21:53:24 +0000
committerChris Lattner <sabre@nondot.org>2008-11-18 21:53:24 +0000
commitebf5ddfbf7df93c9c885c176ac2152669e39cfbf (patch)
tree27b39831181d80e09b30d60e0733bada42c4a5d8 /lib/Sema/Sema.cpp
parent95d1ba492c3191f49392e53acbf878e39fc8ba0a (diff)
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
Diffstat (limited to 'lib/Sema/Sema.cpp')
-rw-r--r--lib/Sema/Sema.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp
index c064e2448b..00ad949fb0 100644
--- a/lib/Sema/Sema.cpp
+++ b/lib/Sema/Sema.cpp
@@ -168,9 +168,9 @@ void Sema::ActOnEndOfTranslationUnit() {
// Helper functions.
//===----------------------------------------------------------------------===//
-bool Sema::Diag(SourceLocation Loc, unsigned DiagID) {
- PP.getDiagnostics().Report(PP.getFullLoc(Loc), DiagID);
- return true;
+DiagnosticInfo Sema::Diag(SourceLocation Loc, unsigned DiagID) {
+ return PP.getDiagnostics().Report(FullSourceLoc(Loc, PP.getSourceManager()),
+ DiagID);
}
bool Sema::Diag(SourceLocation Loc, unsigned DiagID, const std::string &Msg) {