summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-27 19:20:47 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-27 19:20:47 +0000
commite046664a0e67ffc5792437579ed1a671111bc649 (patch)
treeac59b232e7ecdc3271a57bc5d19577e7ebbabfcf /include/llvm
parentd8e141c0c19fd55834b2a10ec4909effb39e0703 (diff)
downloadllvm-e046664a0e67ffc5792437579ed1a671111bc649.tar.gz
llvm-e046664a0e67ffc5792437579ed1a671111bc649.tar.bz2
llvm-e046664a0e67ffc5792437579ed1a671111bc649.tar.xz
Const-correct SelectionDAG::getAtomic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207373 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h4
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index b6e1f85742..0186d26c86 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -724,12 +724,12 @@ public:
/// getAtomic - Gets a node for an atomic op, produces result and chain and
/// takes N operands.
SDValue getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTList,
- SDValue *Ops, unsigned NumOps, MachineMemOperand *MMO,
+ const SDValue *Ops, unsigned NumOps, MachineMemOperand *MMO,
AtomicOrdering SuccessOrdering,
AtomicOrdering FailureOrdering,
SynchronizationScope SynchScope);
SDValue getAtomic(unsigned Opcode, SDLoc dl, EVT MemVT, SDVTList VTList,
- SDValue *Ops, unsigned NumOps, MachineMemOperand *MMO,
+ const SDValue *Ops, unsigned NumOps, MachineMemOperand *MMO,
AtomicOrdering Ordering, SynchronizationScope SynchScope);
/// getMemIntrinsicNode - Creates a MemIntrinsicNode that may produce a
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index c3e926522d..45eda21db1 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1160,7 +1160,7 @@ public:
InitOperands(Ops, Chain, Ptr);
}
AtomicSDNode(unsigned Opc, unsigned Order, DebugLoc dl, SDVTList VTL, EVT MemVT,
- SDValue* AllOps, SDUse *DynOps, unsigned NumOps,
+ const SDValue* AllOps, SDUse *DynOps, unsigned NumOps,
MachineMemOperand *MMO,
AtomicOrdering SuccessOrdering, AtomicOrdering FailureOrdering,
SynchronizationScope SynchScope)