mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Make Loop and MachineLoop be subclasses of LoopBase, rather than typedefs,
using the Curiously Recurring Template Pattern with LoopBase. This will help further refactoring, and future functionality for Loop. Also, Headers can now foward-declare Loop, instead of pulling in LoopInfo.h or doing tricks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -19,8 +19,12 @@
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
using namespace llvm;
|
||||
|
||||
TEMPLATE_INSTANTIATION(class LoopBase<MachineBasicBlock>);
|
||||
TEMPLATE_INSTANTIATION(class LoopInfoBase<MachineBasicBlock>);
|
||||
#define MLB class LoopBase<MachineBasicBlock, MachineLoop>
|
||||
TEMPLATE_INSTANTIATION(MLB);
|
||||
#undef MLB
|
||||
#define MLIB class LoopInfoBase<MachineBasicBlock, MachineLoop>
|
||||
TEMPLATE_INSTANTIATION(MLIB);
|
||||
#undef MLIB
|
||||
|
||||
char MachineLoopInfo::ID = 0;
|
||||
static RegisterPass<MachineLoopInfo>
|
||||
|
Reference in New Issue
Block a user