summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-10-21 22:37:46 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-10-21 22:37:46 +0000
commitb6fd98c7d90fe66c151b3a6142f1edaebad969c9 (patch)
treebb241b98688a1cbda2b05fdb2d129311857fcd97 /llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp
parent654c3284f4232826d95ead6150277ea2dbef5df6 (diff)
downloadbcm5719-llvm-b6fd98c7d90fe66c151b3a6142f1edaebad969c9.tar.gz
bcm5719-llvm-b6fd98c7d90fe66c151b3a6142f1edaebad969c9.zip
AMDGPU: Split DiagnosticInfoUnsupported into its own file
llvm-svn: 250959
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp b/llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp
new file mode 100644
index 00000000000..2f6b3022dd6
--- /dev/null
+++ b/llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp
@@ -0,0 +1,26 @@
+//===-- AMDGPUDiagnosticInfoUnsupported.cpp -------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#include "AMDGPUDiagnosticInfoUnsupported.h"
+
+using namespace llvm;
+
+DiagnosticInfoUnsupported::DiagnosticInfoUnsupported(
+ const Function &Fn,
+ const Twine &Desc,
+ DiagnosticSeverity Severity)
+ : DiagnosticInfo(getKindID(), Severity),
+ Description(Desc),
+ Fn(Fn) { }
+
+int DiagnosticInfoUnsupported::KindID = 0;
+
+void DiagnosticInfoUnsupported::print(DiagnosticPrinter &DP) const {
+ DP << "unsupported " << getDescription() << " in " << Fn.getName();
+}
OpenPOWER on IntegriCloud