aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-02-26 00:12:13 +0000
committerDevang Patel <dpatel@apple.com>2008-02-26 00:12:13 +0000
commitaaeb60ae4028c841bf009173529d91a45f370756 (patch)
treec96e74b3628b10e1d2c200561c0fd85e709155d1 /include
parentfaa999565f15e70630c09bd75002408d3cc7ff66 (diff)
downloadexternal_llvm-aaeb60ae4028c841bf009173529d91a45f370756.zip
external_llvm-aaeb60ae4028c841bf009173529d91a45f370756.tar.gz
external_llvm-aaeb60ae4028c841bf009173529d91a45f370756.tar.bz2
Pass const vectors by reference.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 2ac311a..c9329db 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -1381,7 +1381,7 @@ public:
class ReturnInst : public TerminatorInst {
ReturnInst(const ReturnInst &RI);
void init(Value *RetVal);
- void init(std::vector<Value *> &RetVals);
+ void init(const std::vector<Value *> &RetVals);
public:
// ReturnInst constructors:
@@ -1397,9 +1397,9 @@ public:
// if it was passed NULL.
explicit ReturnInst(Value *retVal = 0, Instruction *InsertBefore = 0);
ReturnInst(Value *retVal, BasicBlock *InsertAtEnd);
- ReturnInst(std::vector<Value *> &retVals);
- ReturnInst(std::vector<Value *> &retVals, Instruction *InsertBefore);
- ReturnInst(std::vector<Value *> &retVals, BasicBlock *InsertAtEnd);
+ ReturnInst(const std::vector<Value *> &retVals);
+ ReturnInst(const std::vector<Value *> &retVals, Instruction *InsertBefore);
+ ReturnInst(const std::vector<Value *> &retVals, BasicBlock *InsertAtEnd);
explicit ReturnInst(BasicBlock *InsertAtEnd);
virtual ~ReturnInst();