mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 14:33:02 +02:00
7b241d838d
llvm-svn: 250959
27 lines
806 B
C++
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();
|
|
}
|