+ /// @param ShowLine - Should the diagnostic show the source line.
+ void PrintMessage(SMLoc Loc, const std::string &Msg, const char *Type,
+ bool ShowLine = true) const;
+
+
+ /// GetMessage - Return an SMDiagnostic at the specified location with the
+ /// specified string.
+ ///
+ /// @param Type - If non-null, the kind of message (e.g., "error") which is
+ /// prefixed to the message.
+ /// @param ShowLine - Should the diagnostic show the source line.
+ SMDiagnostic GetMessage(SMLoc Loc,
+ const std::string &Msg, const char *Type,
+ bool ShowLine = true) const;
+
+