diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-01 01:03:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-01 01:03:04 +0000 |
commit | 641055225092833197efe8e5bce01d50bcf1daae (patch) | |
tree | dfe75cd46005844f61d582c2ade94727f77bc1df /lib/Target/Alpha | |
parent | e43ba3dce745de6e22b1f0e3bd9a39f053349072 (diff) | |
download | external_llvm-641055225092833197efe8e5bce01d50bcf1daae.zip external_llvm-641055225092833197efe8e5bce01d50bcf1daae.tar.gz external_llvm-641055225092833197efe8e5bce01d50bcf1daae.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/Alpha')
-rw-r--r-- | lib/Target/Alpha/AlphaInstrInfo.cpp | 2 | ||||
-rw-r--r-- | lib/Target/Alpha/AlphaInstrInfo.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaInstrInfo.cpp b/lib/Target/Alpha/AlphaInstrInfo.cpp index db0dc7b..7a475b0 100644 --- a/lib/Target/Alpha/AlphaInstrInfo.cpp +++ b/lib/Target/Alpha/AlphaInstrInfo.cpp @@ -19,7 +19,7 @@ using namespace llvm; AlphaInstrInfo::AlphaInstrInfo() - : TargetInstrInfo(AlphaInsts, array_lengthof(AlphaInsts)), + : TargetInstrInfoImpl(AlphaInsts, array_lengthof(AlphaInsts)), RI(*this) { } diff --git a/lib/Target/Alpha/AlphaInstrInfo.h b/lib/Target/Alpha/AlphaInstrInfo.h index 7ce377a..a7fd545 100644 --- a/lib/Target/Alpha/AlphaInstrInfo.h +++ b/lib/Target/Alpha/AlphaInstrInfo.h @@ -19,7 +19,7 @@ namespace llvm { -class AlphaInstrInfo : public TargetInstrInfo { +class AlphaInstrInfo : public TargetInstrInfoImpl { const AlphaRegisterInfo RI; public: AlphaInstrInfo(); |