LinkDiagnosticInfo.h 733 B

123456789101112131415161718192021222324
  1. //===- LinkDiagnosticInfo.h -------------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_LIB_LINKER_LINK_DIAGNOSTIC_INFO_H
  9. #define LLVM_LIB_LINKER_LINK_DIAGNOSTIC_INFO_H
  10. #include "llvm/IR/DiagnosticInfo.h"
  11. namespace llvm {
  12. class LinkDiagnosticInfo : public DiagnosticInfo {
  13. const Twine &Msg;
  14. public:
  15. LinkDiagnosticInfo(DiagnosticSeverity Severity, const Twine &Msg);
  16. void print(DiagnosticPrinter &DP) const override;
  17. };
  18. }
  19. #endif