diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-07-01 17:57:27 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-01 17:57:27 +0000 |
| commit | 703a0fbf390bae4a6c087fb28f40e0b8e21644e5 (patch) | |
| tree | c826333a021d8bcbb4f59c212a291890a57c8830 /llvm/lib/Target/Alpha | |
| parent | 4def704a218191c0296954aa0c24659e4553c969 (diff) | |
| download | bcm5719-llvm-703a0fbf390bae4a6c087fb28f40e0b8e21644e5.tar.gz bcm5719-llvm-703a0fbf390bae4a6c087fb28f40e0b8e21644e5.zip | |
Hide the call to InitMCInstrInfo into tblgen generated ctor.
llvm-svn: 134244
Diffstat (limited to 'llvm/lib/Target/Alpha')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaInstrInfo.cpp | 7 | ||||
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaInstrInfo.h | 5 |
2 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp b/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp index 220f1672d35..c105759ff70 100644 --- a/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp +++ b/llvm/lib/Target/Alpha/AlphaInstrInfo.cpp @@ -21,13 +21,14 @@ #include "llvm/Support/ErrorHandling.h" #define GET_INSTRINFO_MC_DESC +#define GET_INSTRINFO_CTOR #include "AlphaGenInstrInfo.inc" using namespace llvm; AlphaInstrInfo::AlphaInstrInfo() - : TargetInstrInfoImpl(AlphaInsts, array_lengthof(AlphaInsts), - Alpha::ADJUSTSTACKDOWN, Alpha::ADJUSTSTACKUP), - RI(*this) { } + : AlphaGenInstrInfo(Alpha::ADJUSTSTACKDOWN, Alpha::ADJUSTSTACKUP), + RI(*this) { +} unsigned diff --git a/llvm/lib/Target/Alpha/AlphaInstrInfo.h b/llvm/lib/Target/Alpha/AlphaInstrInfo.h index ee6077a4a01..337a85cdf22 100644 --- a/llvm/lib/Target/Alpha/AlphaInstrInfo.h +++ b/llvm/lib/Target/Alpha/AlphaInstrInfo.h @@ -17,9 +17,12 @@ #include "llvm/Target/TargetInstrInfo.h" #include "AlphaRegisterInfo.h" +#define GET_INSTRINFO_HEADER +#include "AlphaGenInstrInfo.inc" + namespace llvm { -class AlphaInstrInfo : public TargetInstrInfoImpl { +class AlphaInstrInfo : public AlphaGenInstrInfo { const AlphaRegisterInfo RI; public: AlphaInstrInfo(); |

