[llvm] r228048 - [PBQP] Constify Graph::getEdgeNode1Id and Graph::getEdgeNode2Id

Arnaud A. de Grandmaison arnaud.degrandmaison at arm.com
Tue Feb 3 14:02:45 PST 2015


Author: aadg
Date: Tue Feb  3 16:02:45 2015
New Revision: 228048

URL: http://llvm.org/viewvc/llvm-project?rev=228048&view=rev
Log:
[PBQP] Constify Graph::getEdgeNode1Id and Graph::getEdgeNode2Id

Modified:
    llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h

Modified: llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h?rev=228048&r1=228047&r2=228048&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h (original)
+++ llvm/trunk/include/llvm/CodeGen/PBQP/Graph.h Tue Feb  3 16:02:45 2015
@@ -548,14 +548,14 @@ namespace PBQP {
     /// @brief Get the first node connected to this edge.
     /// @param EId Edge id.
     /// @return The first node connected to the given edge.
-    NodeId getEdgeNode1Id(EdgeId EId) {
+    NodeId getEdgeNode1Id(EdgeId EId) const {
       return getEdge(EId).getN1Id();
     }
 
     /// @brief Get the second node connected to this edge.
     /// @param EId Edge id.
     /// @return The second node connected to the given edge.
-    NodeId getEdgeNode2Id(EdgeId EId) {
+    NodeId getEdgeNode2Id(EdgeId EId) const {
       return getEdge(EId).getN2Id();
     }
 





More information about the llvm-commits mailing list