diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-08 18:52:46 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-08 18:52:46 +0000 |
commit | 76b6426a8c9449a9e96e6752740509992f439e53 (patch) | |
tree | 7757c41c6bb92f9d887f02258552f771f92747ad /llvm/lib | |
parent | 223b345279b45c4ef02d412af9599df8275b986f (diff) | |
download | bcm5719-llvm-76b6426a8c9449a9e96e6752740509992f439e53.tar.gz bcm5719-llvm-76b6426a8c9449a9e96e6752740509992f439e53.zip |
Add a TmpInstruction ctor that doesn't take a MCFI.
llvm-svn: 14073
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp b/llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp index d30881f5932..6cce02f8dd6 100644 --- a/llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp +++ b/llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp @@ -84,6 +84,17 @@ namespace { }; } +TmpInstruction::TmpInstruction(Value *s1, Value *s2, const std::string &name) + : Instruction(s1->getType(), Instruction::UserOp1, name) +{ + Operands.push_back(Use(s1, this)); // s1 must be non-null + if (s2) + Operands.push_back(Use(s2, this)); + + // TmpInstructions should not be garbage checked. + LeakDetector::removeGarbageObject(this); +} + TmpInstruction::TmpInstruction(MachineCodeForInstruction& mcfi, Value *s1, Value *s2, const std::string &name) : Instruction(s1->getType(), Instruction::UserOp1, name) @@ -97,9 +108,9 @@ TmpInstruction::TmpInstruction(MachineCodeForInstruction& mcfi, // TmpInstructions should not be garbage checked. LeakDetector::removeGarbageObject(this); } - + // Constructor that requires the type of the temporary to be specified. -// Both S1 and S2 may be NULL.( +// Both S1 and S2 may be NULL. TmpInstruction::TmpInstruction(MachineCodeForInstruction& mcfi, const Type *Ty, Value *s1, Value* s2, const std::string &name) |