summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-06-29 00:40:57 +0000
committerCraig Topper <craig.topper@gmail.com>2014-06-29 00:40:57 +0000
commit66e588be09779fa293ffc57b1f14c278221b8c19 (patch)
tree8f1883c86cea8fda380070eaf1c0d679e8c69ac7 /llvm/lib/CodeGen
parenta666910c429bbb86b91fa4faac77c22aaa565e5d (diff)
downloadbcm5719-llvm-66e588be09779fa293ffc57b1f14c278221b8c19.tar.gz
bcm5719-llvm-66e588be09779fa293ffc57b1f14c278221b8c19.zip
Add ops() method to SDNode that returns an ArrayRef<SDUse>. Use it to simplify some code.
llvm-svn: 211993
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 4aad5dcfc4c..304a394b0c3 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -557,7 +557,7 @@ static void AddNodeIDNode(FoldingSetNodeID &ID, const SDNode *N) {
// Add the return value info.
AddNodeIDValueTypes(ID, N->getVTList());
// Add the operand info.
- AddNodeIDOperands(ID, makeArrayRef(N->op_begin(), N->op_end()));
+ AddNodeIDOperands(ID, N->ops());
// Handle SDNode leafs with special info.
AddNodeIDCustom(ID, N);
OpenPOWER on IntegriCloud