[llvm-commits] [llvm] r102816 - in /llvm/trunk/lib/CodeGen/SelectionDAG: SelectionDAGBuilder.cpp SelectionDAGBuilder.h
Dan Gohman
gohman at apple.com
Fri Apr 30 17:33:16 PDT 2010
Author: djg
Date: Fri Apr 30 19:33:16 2010
New Revision: 102816
URL: http://llvm.org/viewvc/llvm-project?rev=102816&view=rev
Log:
Don't pass SDValues by non-const reference unless they may be
modified.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=102816&r1=102815&r2=102816&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Fri Apr 30 19:33:16 2010
@@ -3685,7 +3685,8 @@
bool
SelectionDAGBuilder::EmitFuncArgumentDbgValue(const DbgValueInst &DI,
const Value *V, MDNode *Variable,
- uint64_t Offset, SDValue &N) {
+ uint64_t Offset,
+ const SDValue &N) {
if (!isa<Argument>(V))
return false;
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h?rev=102816&r1=102815&r2=102816&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h Fri Apr 30 19:33:16 2010
@@ -500,7 +500,7 @@
/// the entry BB.
bool EmitFuncArgumentDbgValue(const DbgValueInst &DI,
const Value *V, MDNode *Variable,
- uint64_t Offset, SDValue &N);
+ uint64_t Offset, const SDValue &N);
};
} // end namespace llvm
More information about the llvm-commits
mailing list