[llvm] r175344 - Add some constantness in Machine Dominators.

Jakub Staszak kubastaszak at gmail.com
Sat Feb 16 03:08:16 PST 2013


Author: kuba
Date: Sat Feb 16 05:08:16 2013
New Revision: 175344

URL: http://llvm.org/viewvc/llvm-project?rev=175344&view=rev
Log:
Add some constantness in Machine Dominators.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineDominators.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineDominators.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineDominators.h?rev=175344&r1=175343&r2=175344&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineDominators.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineDominators.h Sat Feb 16 05:08:16 2013
@@ -68,11 +68,13 @@ public:
 
   virtual bool runOnMachineFunction(MachineFunction &F);
 
-  inline bool dominates(MachineDomTreeNode* A, MachineDomTreeNode* B) const {
+  inline bool dominates(const MachineDomTreeNode* A,
+                        const MachineDomTreeNode* B) const {
     return DT->dominates(A, B);
   }
 
-  inline bool dominates(MachineBasicBlock* A, MachineBasicBlock* B) const {
+  inline bool dominates(const MachineBasicBlock* A,
+                        const MachineBasicBlock* B) const {
     return DT->dominates(A, B);
   }
 
@@ -97,12 +99,12 @@ public:
   }
 
   inline bool properlyDominates(const MachineDomTreeNode* A,
-                                MachineDomTreeNode* B) const {
+                                const MachineDomTreeNode* B) const {
     return DT->properlyDominates(A, B);
   }
 
-  inline bool properlyDominates(MachineBasicBlock* A,
-                                MachineBasicBlock* B) const {
+  inline bool properlyDominates(const MachineBasicBlock* A,
+                                const MachineBasicBlock* B) const {
     return DT->properlyDominates(A, B);
   }
 
@@ -160,7 +162,7 @@ public:
 
   /// isReachableFromEntry - Return true if A is dominated by the entry
   /// block of the function containing it.
-  bool isReachableFromEntry(MachineBasicBlock *A) {
+  bool isReachableFromEntry(const MachineBasicBlock *A) {
     return DT->isReachableFromEntry(A);
   }
 





More information about the llvm-commits mailing list