X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=lib%2FCodeGen%2FPrologEpilogInserter.h;h=e2391591ad068c4036f11caf1606b89e47015fa9;hb=1b4f6f2532e9a6a99fcab5fde5b4a2187c9c9c2b;hp=1dccfd3c43f97d6c4a95f4a8a0bcfad24858ad9a;hpb=e40bf5f9f40a4672cd55bfa51c64a4bb6f4b2f8f;p=oota-llvm.git diff --git a/lib/CodeGen/PrologEpilogInserter.h b/lib/CodeGen/PrologEpilogInserter.h index 1dccfd3c43f..e2391591ad0 100644 --- a/lib/CodeGen/PrologEpilogInserter.h +++ b/lib/CodeGen/PrologEpilogInserter.h @@ -36,7 +36,9 @@ namespace llvm { class PEI : public MachineFunctionPass { public: static char ID; - PEI() : MachineFunctionPass(&ID) {} + PEI() : MachineFunctionPass(ID) { + initializePEIPass(*PassRegistry::getPassRegistry()); + } const char *getPassName() const { return "Prolog/Epilog Insertion & Frame Finalization"; @@ -94,11 +96,10 @@ namespace llvm { // functions. bool ShrinkWrapThisFunction; - // When using the scavenger post-pass to resolve frame reference - // materialization registers, maintain a map of the registers to - // the constant value and SP adjustment associated with it. - typedef std::pair FrameConstantEntry; - DenseMap FrameConstantRegMap; + // Flag to control whether to use the register scavenger to resolve + // frame index materialization registers. Set according to + // TRI->requiresFrameIndexScavenging() for the curren function. + bool FrameIndexVirtualScavenging; #ifndef NDEBUG // Machine function handle.