add accessor, improve comment.
authorChris Lattner <sabre@nondot.org>
Mon, 7 Dec 2009 19:45:30 +0000 (19:45 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 7 Dec 2009 19:45:30 +0000 (19:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90792 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/PHITransAddr.h
lib/Analysis/PHITransAddr.cpp

index ed5ddcae2800f1f748776d2982fbdb30f48bf54d..678d40561e8db6ff6e98b334b605ebd2329ef7b3 100644 (file)
@@ -47,6 +47,8 @@ public:
       InstInputs.push_back(I);
   }
   
+  Value *getAddr() const { return Addr; }
+  
   /// NeedsPHITranslationFromBlock - Return true if moving from the specified
   /// BasicBlock to its predecessors requires PHI translation.
   bool NeedsPHITranslationFromBlock(BasicBlock *BB) const {
@@ -65,7 +67,7 @@ public:
   
   /// PHITranslateValue - PHI translate the current address up the CFG from
   /// CurBB to Pred, updating our state the reflect any needed changes.  This
-  /// returns true on failure.
+  /// returns true on failure and sets Addr to null.
   bool PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB);
   
   /// PHITranslateWithInsertion - PHI translate this value into the specified
index 40800b4e581476b2117944afb7640e682321ec13..9935b9261c045b30b51d5c0f08b5c88f8a32e62f 100644 (file)
@@ -195,7 +195,7 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
 
 /// PHITranslateValue - PHI translate the current address up the CFG from
 /// CurBB to Pred, updating our state the reflect any needed changes.  This
-/// returns true on failure.
+/// returns true on failure and sets Addr to null.
 bool PHITransAddr::PHITranslateValue(BasicBlock *CurBB, BasicBlock *PredBB) {
   Addr = PHITranslateSubExpr(Addr, CurBB, PredBB);
   return Addr == 0;