mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +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:
@@ -15,6 +15,7 @@
|
||||
#include "llvm/Analysis/IntervalIterator.h"
|
||||
using namespace llvm;
|
||||
|
||||
const int IntervalPartition::ID = 0;
|
||||
static RegisterPass<IntervalPartition>
|
||||
X("intervals", "Interval Partition Construction", true);
|
||||
|
||||
@@ -88,7 +89,8 @@ bool IntervalPartition::runOnFunction(Function &F) {
|
||||
// existing interval graph. This takes an additional boolean parameter to
|
||||
// distinguish it from a copy constructor. Always pass in false for now.
|
||||
//
|
||||
IntervalPartition::IntervalPartition(IntervalPartition &IP, bool) {
|
||||
IntervalPartition::IntervalPartition(IntervalPartition &IP, bool)
|
||||
: FunctionPass((intptr_t) &ID) {
|
||||
Interval *FunctionStart = IP.getRootInterval();
|
||||
assert(FunctionStart && "Cannot operate on empty IntervalPartitions!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user