summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/TargetInfo
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2019-05-15 00:46:18 +0000
committerRichard Trieu <rtrieu@google.com>2019-05-15 00:46:18 +0000
commit1e6f98b89dbec629bbb7e6de7cdec108eb3362d5 (patch)
tree1f4e1652948fa81c7013873579db1fff3972c7fb /llvm/lib/Target/SystemZ/TargetInfo
parentcf82d4a483f86012c445d650a1f2e9d7d0d7ef62 (diff)
downloadbcm5719-llvm-1e6f98b89dbec629bbb7e6de7cdec108eb3362d5.tar.gz
bcm5719-llvm-1e6f98b89dbec629bbb7e6de7cdec108eb3362d5.zip
[SystemZ] Create a TargetInfo header. NFC
Move the declarations of getThe<Name>Target() functions into a new header in TargetInfo and make users of these functions include this new header. This fixes a layering problem. llvm-svn: 360734
Diffstat (limited to 'llvm/lib/Target/SystemZ/TargetInfo')
-rw-r--r--llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp2
-rw-r--r--llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.h20
2 files changed, 21 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp b/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
index 07093dcf9f3..713a55ee840 100644
--- a/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
+++ b/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.cpp
@@ -6,7 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include "SystemZ.h"
+#include "TargetInfo/SystemZTargetInfo.h"
#include "llvm/Support/TargetRegistry.h"
using namespace llvm;
diff --git a/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.h b/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.h
new file mode 100644
index 00000000000..cad141c81e6
--- /dev/null
+++ b/llvm/lib/Target/SystemZ/TargetInfo/SystemZTargetInfo.h
@@ -0,0 +1,20 @@
+//===-- SystemZTargetInfo.h - SystemZ 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_SYSTEMZ_TARGETINFO_SYSTEMZTARGETINFO_H
+#define LLVM_LIB_TARGET_SYSTEMZ_TARGETINFO_SYSTEMZTARGETINFO_H
+
+namespace llvm {
+
+class Target;
+
+Target &getTheSystemZTarget();
+
+} // namespace llvm
+
+#endif // LLVM_LIB_TARGET_SYSTEMZ_TARGETINFO_SYSTEMZTARGETINFO_H
OpenPOWER on IntegriCloud