DiagnosticInfo: Allow unsupported be a warning

Some unsupported features can be ignored, so don't force
this to be a hard error.

llvm-svn: 273061
This commit is contained in:
Matt Arsenault 2016-06-17 22:26:56 +00:00
parent e32264a4c0
commit eef67d531e
1 changed files with 3 additions and 2 deletions

View File

@ -632,8 +632,9 @@ public:
/// copy this message, so this reference must be valid for the whole life time
/// of the diagnostic.
DiagnosticInfoUnsupported(const Function &Fn, const Twine &Msg,
DebugLoc DLoc = DebugLoc())
: DiagnosticInfoWithDebugLocBase(DK_Unsupported, DS_Error, Fn, DLoc),
DebugLoc DLoc = DebugLoc(),
DiagnosticSeverity Severity = DS_Error)
: DiagnosticInfoWithDebugLocBase(DK_Unsupported, Severity, Fn, DLoc),
Msg(Msg) {}
static bool classof(const DiagnosticInfo *DI) {