summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/MSP430/TargetInfo
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2019-05-14 23:45:18 +0000
committerRichard Trieu <rtrieu@google.com>2019-05-14 23:45:18 +0000
commita57ce32effdc78484f7584c69abbfdebe4d07629 (patch)
tree581869891928da80609bdec3ba754576b1075794 /llvm/lib/Target/MSP430/TargetInfo
parent313b78150ceca3ba5f1779a7aed8e4eb4d1105f9 (diff)
downloadbcm5719-llvm-a57ce32effdc78484f7584c69abbfdebe4d07629.tar.gz
bcm5719-llvm-a57ce32effdc78484f7584c69abbfdebe4d07629.zip
[MSP430] 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: 360728
Diffstat (limited to 'llvm/lib/Target/MSP430/TargetInfo')
-rw-r--r--llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.cpp3
-rw-r--r--llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.h20
2 files changed, 21 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.cpp b/llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.cpp
index 045a8b9a50f..5da7d588079 100644
--- a/llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.cpp
+++ b/llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.cpp
@@ -6,8 +6,7 @@
//
//===----------------------------------------------------------------------===//
-#include "MSP430.h"
-#include "llvm/IR/Module.h"
+#include "TargetInfo/MSP430TargetInfo.h"
#include "llvm/Support/TargetRegistry.h"
using namespace llvm;
diff --git a/llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.h b/llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.h
new file mode 100644
index 00000000000..17854244f28
--- /dev/null
+++ b/llvm/lib/Target/MSP430/TargetInfo/MSP430TargetInfo.h
@@ -0,0 +1,20 @@
+//===-- MSP430TargetInfo.h - MSP430 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_MSP430_TARGETINFO_MSP430TARGETINFO_H
+#define LLVM_LIB_TARGET_MSP430_TARGETINFO_MSP430TARGETINFO_H
+
+namespace llvm {
+
+class Target;
+
+Target &getTheMSP430Target();
+
+} // namespace llvm
+
+#endif // LLVM_LIB_TARGET_MSP430_TARGETINFO_MSP430TARGETINFO_H
OpenPOWER on IntegriCloud