[llvm] r273061 - DiagnosticInfo: Allow unsupported be a warning
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 15:26:56 PDT 2016
Author: arsenm
Date: Fri Jun 17 17:26:56 2016
New Revision: 273061
URL: http://llvm.org/viewvc/llvm-project?rev=273061&view=rev
Log:
DiagnosticInfo: Allow unsupported be a warning
Some unsupported features can be ignored, so don't force
this to be a hard error.
Modified:
llvm/trunk/include/llvm/IR/DiagnosticInfo.h
Modified: llvm/trunk/include/llvm/IR/DiagnosticInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=273061&r1=273060&r2=273061&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DiagnosticInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DiagnosticInfo.h Fri Jun 17 17:26:56 2016
@@ -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) {
More information about the llvm-commits
mailing list