1 //===-- iReturn.cpp - Implement the Return instruction -----------*- C++ -*--=//
3 // This file implements the Return instruction...
5 //===----------------------------------------------------------------------===//
7 #include "llvm/iTerminators.h"
9 ReturnInst::ReturnInst(Value *V)
10 : TerminatorInst(Instruction::Ret), Val(V, this) {
13 ReturnInst::ReturnInst(const ReturnInst &RI)
14 : TerminatorInst(Instruction::Ret), Val(RI.Val, this) {
17 void ReturnInst::dropAllReferences() {
21 bool ReturnInst::setOperand(unsigned i, Value *V) {