Add new optional getPassName() virtual function that a Pass can override
[oota-llvm.git] / lib / Transforms / Utils / PromoteMemoryToRegister.cpp
index e0d2c2475fcc5b322f73376a4ab9b42db56abde3..3d81a8bde05c08023cd9b08b261ef8450e958f29 100644 (file)
@@ -44,6 +44,8 @@ namespace {
     map<BasicBlock*,vector<PHINode*> > NewPhiNodes; // the PhiNodes we're adding
 
   public:
+    const char *getPassName() const { return "Promote Memory to Register"; }
+
     // runOnFunction - To run this pass, first we calculate the alloca
     // instructions that are safe for promotion, then we promote each one.
     //