diff options
| author | Devang Patel <dpatel@apple.com> | 2008-02-26 00:12:13 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-02-26 00:12:13 +0000 |
| commit | 767338ccec6f4a575dbe6b5198aae7e395def660 (patch) | |
| tree | d2b5bc7bf8b75616443d9dba69928845e2292649 /llvm/include | |
| parent | ad7d8edeeb81b7184e343d1ee62bdeafbcd27b8f (diff) | |
| download | bcm5719-llvm-767338ccec6f4a575dbe6b5198aae7e395def660.tar.gz bcm5719-llvm-767338ccec6f4a575dbe6b5198aae7e395def660.zip | |
Pass const vectors by reference.
llvm-svn: 47577
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Instructions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Instructions.h b/llvm/include/llvm/Instructions.h index 2ac311a575e..c9329db29d7 100644 --- a/llvm/include/llvm/Instructions.h +++ b/llvm/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(); |

