aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCInstrInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-01 01:03:04 +0000
committerChris Lattner <sabre@nondot.org>2008-01-01 01:03:04 +0000
commitd2fd6db5816e58ea3287bef90250e044025e7bca (patch)
treedfe75cd46005844f61d582c2ade94727f77bc1df /lib/Target/PowerPC/PPCInstrInfo.h
parent87fd1ec954e2e4ce29cadd22ca8ad5e44b20fb8e (diff)
downloadexternal_llvm-d2fd6db5816e58ea3287bef90250e044025e7bca.zip
external_llvm-d2fd6db5816e58ea3287bef90250e044025e7bca.tar.gz
external_llvm-d2fd6db5816e58ea3287bef90250e044025e7bca.tar.bz2
Fix a problem where lib/Target/TargetInstrInfo.h would include and use
a header file from libcodegen. This violates a layering order: codegen depends on target, not the other way around. The fix to this is to split TII into two classes, TII and TargetInstrInfoImpl, which defines stuff that depends on libcodegen. It is defined in libcodegen, where the base is not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCInstrInfo.h')
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.h b/lib/Target/PowerPC/PPCInstrInfo.h
index f511e23..ac3cf55 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.h
+++ b/lib/Target/PowerPC/PPCInstrInfo.h
@@ -61,7 +61,7 @@ enum PPC970_Unit {
}
-class PPCInstrInfo : public TargetInstrInfo {
+class PPCInstrInfo : public TargetInstrInfoImpl {
PPCTargetMachine &TM;
const PPCRegisterInfo RI;
public: