mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 03:24:34 +00:00
Do not use typeinfo to identify pass in pass manager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,6 +32,9 @@ using namespace llvm;
|
||||
|
||||
namespace {
|
||||
struct VISIBILITY_HIDDEN PEI : public MachineFunctionPass {
|
||||
static const int ID;
|
||||
PEI() : MachineFunctionPass((intptr_t)&ID) {}
|
||||
|
||||
const char *getPassName() const {
|
||||
return "Prolog/Epilog Insertion & Frame Finalization";
|
||||
}
|
||||
@@ -98,6 +101,7 @@ namespace {
|
||||
void replaceFrameIndices(MachineFunction &Fn);
|
||||
void insertPrologEpilogCode(MachineFunction &Fn);
|
||||
};
|
||||
const int PEI::ID = 0;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user