1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 22:42:46 +02:00
llvm-mirror/lib/Target/AMDGPU/AMDGPUDiagnosticInfoUnsupported.cpp
2015-10-21 22:37:46 +00:00

27 lines
806 B
C++

//===-- 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();
}