diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-06-21 16:53:47 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-06-21 16:53:47 +0000 |
| commit | 1c12a881fbdef271e25d5ab9f472e29d7ef46d9d (patch) | |
| tree | c2432dd13a5625c487ce5f772f2e0e99318845ce /llvm/lib/VMCore/Instructions.cpp | |
| parent | 7aa4590f674615c86da4a095cf7e4650983fdc5b (diff) | |
| download | bcm5719-llvm-1c12a881fbdef271e25d5ab9f472e29d7ef46d9d.tar.gz bcm5719-llvm-1c12a881fbdef271e25d5ab9f472e29d7ef46d9d.zip | |
Add some out-of-line virtual dtors so that the class has a "home", preventing
vtables for (e.g.) Instruction from being emitted into every .o file.
llvm-svn: 28898
Diffstat (limited to 'llvm/lib/VMCore/Instructions.cpp')
| -rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index ea1008b3767..c6730e14c5c 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -34,6 +34,8 @@ void CallSite::setCallingConv(unsigned CC) { } + + //===----------------------------------------------------------------------===// // TerminatorInst Class //===----------------------------------------------------------------------===// @@ -48,6 +50,13 @@ TerminatorInst::TerminatorInst(Instruction::TermOps iType, : Instruction(Type::VoidTy, iType, Ops, NumOps, "", IAE) { } +// Out of line virtual method, so the vtable, etc has a home. +TerminatorInst::~TerminatorInst() { +} + +// Out of line virtual method, so the vtable, etc has a home. +UnaryInstruction::~UnaryInstruction() { +} //===----------------------------------------------------------------------===// @@ -532,6 +541,10 @@ AllocationInst::AllocationInst(const Type *Ty, Value *ArraySize, unsigned iTy, assert(Ty != Type::VoidTy && "Cannot allocate void!"); } +// Out of line virtual method, so the vtable, etc has a home. +AllocationInst::~AllocationInst() { +} + bool AllocationInst::isArrayAllocation() const { if (ConstantUInt *CUI = dyn_cast<ConstantUInt>(getOperand(0))) return CUI->getValue() != 1; |

