LLVM  6.0.0svn
LinkDiagnosticInfo.h
Go to the documentation of this file.
1 //===- LinkDiagnosticInfo.h -------------------------------------*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_LIB_LINKER_LINK_DIAGNOSTIC_INFO_H
11 #define LLVM_LIB_LINKER_LINK_DIAGNOSTIC_INFO_H
12 
13 #include "llvm/IR/DiagnosticInfo.h"
14 
15 namespace llvm {
17  const Twine &Msg;
18 
19 public:
20  LinkDiagnosticInfo(DiagnosticSeverity Severity, const Twine &Msg);
21  void print(DiagnosticPrinter &DP) const override;
22 };
23 }
24 
25 #endif
Compute iterated dominance frontiers using a linear time algorithm.
Definition: AllocatorList.h:24
DiagnosticSeverity
Defines the different supported severity of a diagnostic.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:81
Interface for custom diagnostic printing.
This is the base abstract class for diagnostic reporting in the backend.
void print(DiagnosticPrinter &DP) const override
Print using the given DP a user-friendly message.
Definition: IRMover.cpp:336
LinkDiagnosticInfo(DiagnosticSeverity Severity, const Twine &Msg)
Definition: IRMover.cpp:333