aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2009-05-11 19:38:09 +0000
committerJay Foad <jay.foad@gmail.com>2009-05-11 19:38:09 +0000
commit8d730fbde54b7ac9809fc12852c2a8d30f5bec3d (patch)
tree55b1a332a7bd4eeb32706af3f8b47a75dd67fe8d
parent20b7ca1eb9ed1f7bbc6e1b263fbf2b9ad364db9e (diff)
Don't #include DerivedTypes.h from TargetData.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71468 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Target/TargetData.h4
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h
index 9c8b1d3a2a..c91c11a406 100644
--- a/include/llvm/Target/TargetData.h
+++ b/include/llvm/Target/TargetData.h
@@ -23,12 +23,14 @@
#include "llvm/Pass.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/ADT/SmallVector.h"
-#include "llvm/DerivedTypes.h"
#include <string>
namespace llvm {
class Value;
+class Type;
+class IntegerType;
+class StructType;
class StructLayout;
class GlobalVariable;
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index bf562b500e..c8d0a0bfb4 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -32,6 +32,7 @@
#include "llvm/Support/MathExtras.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Support/CommandLine.h"
+#include "llvm/DerivedTypes.h"
using namespace llvm;
static cl::opt<bool> EnablePPCPreinc("enable-ppc-preinc",