diff --git a/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.h b/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.h --- a/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.h +++ b/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.h @@ -31,9 +31,6 @@ class StringRef; class raw_pwrite_stream; class raw_ostream; - -Target &getTheVETarget(); - } // namespace llvm // Defines symbolic names for VE registers. This defines a mapping from diff --git a/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp b/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp --- a/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp +++ b/llvm/lib/Target/VE/MCTargetDesc/VEMCTargetDesc.cpp @@ -11,6 +11,7 @@ //===----------------------------------------------------------------------===// #include "VEMCTargetDesc.h" +#include "TargetInfo/VETargetInfo.h" #include "VEInstPrinter.h" #include "VEMCAsmInfo.h" #include "VETargetStreamer.h" diff --git a/llvm/lib/Target/VE/TargetInfo/VETargetInfo.h b/llvm/lib/Target/VE/TargetInfo/VETargetInfo.h new file mode 100644 --- /dev/null +++ b/llvm/lib/Target/VE/TargetInfo/VETargetInfo.h @@ -0,0 +1,20 @@ +//===-- VETargetInfo.h - VE Target Implementation ---------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIB_TARGET_VE_TARGETINFO_VETARGETINFO_H +#define LLVM_LIB_TARGET_VE_TARGETINFO_VETARGETINFO_H + +namespace llvm { + +class Target; + +Target &getTheVETarget(); + +} // namespace llvm + +#endif // LLVM_LIB_TARGET_VE_TARGETINFO_VETARGETINFO_H diff --git a/llvm/lib/Target/VE/TargetInfo/VETargetInfo.cpp b/llvm/lib/Target/VE/TargetInfo/VETargetInfo.cpp --- a/llvm/lib/Target/VE/TargetInfo/VETargetInfo.cpp +++ b/llvm/lib/Target/VE/TargetInfo/VETargetInfo.cpp @@ -6,8 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "VE.h" -#include "llvm/IR/Module.h" +#include "TargetInfo/VETargetInfo.h" #include "llvm/Support/TargetRegistry.h" using namespace llvm; diff --git a/llvm/lib/Target/VE/VEAsmPrinter.cpp b/llvm/lib/Target/VE/VEAsmPrinter.cpp --- a/llvm/lib/Target/VE/VEAsmPrinter.cpp +++ b/llvm/lib/Target/VE/VEAsmPrinter.cpp @@ -14,6 +14,7 @@ #include "MCTargetDesc/VEInstPrinter.h" #include "MCTargetDesc/VEMCExpr.h" #include "MCTargetDesc/VETargetStreamer.h" +#include "TargetInfo/VETargetInfo.h" #include "VE.h" #include "VEInstrInfo.h" #include "VETargetMachine.h" diff --git a/llvm/lib/Target/VE/VETargetMachine.cpp b/llvm/lib/Target/VE/VETargetMachine.cpp --- a/llvm/lib/Target/VE/VETargetMachine.cpp +++ b/llvm/lib/Target/VE/VETargetMachine.cpp @@ -10,6 +10,7 @@ //===----------------------------------------------------------------------===// #include "VETargetMachine.h" +#include "TargetInfo/VETargetInfo.h" #include "VE.h" #include "VETargetTransformInfo.h" #include "llvm/CodeGen/Passes.h"