DiagnosticInfo: Allow unsupported be a warning

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2016-06-17 22:26:56 +00:00
parent 0243f6a0db
commit bfa4d786a1

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) {