aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp
blob: 2f6b3022dd6eafab754ccb4317edbc50acc53f21 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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();
}