OSDN Git Service

DiagnosticInfo: Allow unsupported be a warning
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Jun 2016 22:26:56 +0000 (22:26 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 17 Jun 2016 22:26:56 +0000 (22:26 +0000)
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

index 9e5bb2b..59dfff9 100644 (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) {