mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[PBQP] Constify Graph::getEdgeNode1Id and Graph::getEdgeNode2Id
llvm-svn: 228048
This commit is contained in:
parent
eee3b225d9
commit
352dc10d81
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user