From bfa4d786a1034366682402076909fa8c47ca6599 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 17 Jun 2016 22:26:56 +0000 Subject: [PATCH] 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 --- include/llvm/IR/DiagnosticInfo.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/llvm/IR/DiagnosticInfo.h b/include/llvm/IR/DiagnosticInfo.h index 9e5bb2b8a3a..59dfff90632 100644 --- a/include/llvm/IR/DiagnosticInfo.h +++ b/include/llvm/IR/DiagnosticInfo.h @@ -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) {