aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-08 21:07:51 +0000
committerChris Lattner <sabre@nondot.org>2002-09-08 21:07:51 +0000
commit71184414d607bce0f5a44cb148ea7e2e41270498 (patch)
treebc1b31f04d8bc4d8e55f1692403a6b3f602ac021
parentc4e4a996772279dd1155e1deac141a7a60da1c31 (diff)
Move TmpInstruction ctor to InstrSelection.cpp file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3622 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/InstrSelection.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/llvm/CodeGen/InstrSelection.h b/include/llvm/CodeGen/InstrSelection.h
index 0e47296e14..256a1807f7 100644
--- a/include/llvm/CodeGen/InstrSelection.h
+++ b/include/llvm/CodeGen/InstrSelection.h
@@ -68,22 +68,12 @@ class TmpInstruction : public Instruction {
public:
// Constructor that uses the type of S1 as the type of the temporary.
// s1 must be a valid value. s2 may be NULL.
- TmpInstruction(Value *s1, Value *s2 = 0, const std::string &name = "")
- : Instruction(s1->getType(), Instruction::UserOp1, name) {
- Operands.push_back(Use(s1, this)); // s1 must be nonnull
- if (s2) {
- Operands.push_back(Use(s2, this));
- }
- }
+ TmpInstruction(Value *s1, Value *s2 = 0, const std::string &name = "");
// Constructor that requires the type of the temporary to be specified.
// Both S1 and S2 may be NULL.
TmpInstruction(const Type *Ty, Value *s1 = 0, Value* s2 = 0,
- const std::string &name = "")
- : Instruction(Ty, Instruction::UserOp1, name) {
- if (s1) { Operands.push_back(Use(s1, this)); }
- if (s2) { Operands.push_back(Use(s2, this)); }
- }
+ const std::string &name = "");
virtual Instruction *clone() const { return new TmpInstruction(*this); }
virtual const char *getOpcodeName() const {