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 | 70aa33ee37fede7fb84de02daa38557ffd366458 (patch) | |
tree | 9f7faee50e86f0107e468ece963a7d71e8c3cbeb /include/llvm/Instructions.h | |
parent | 0ad19703aef030ff92c7ccd28b741dc2da086e10 (diff) | |
download | external_llvm-70aa33ee37fede7fb84de02daa38557ffd366458.tar.gz external_llvm-70aa33ee37fede7fb84de02daa38557ffd366458.tar.bz2 external_llvm-70aa33ee37fede7fb84de02daa38557ffd366458.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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28898 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 0f92293f20..a3d70f8f14 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -40,9 +40,10 @@ protected: const std::string &Name = "", Instruction *InsertBefore = 0); AllocationInst(const Type *Ty, Value *ArraySize, unsigned iTy, unsigned Align, const std::string &Name, BasicBlock *InsertAtEnd); - public: - + // Out of line virtual method, so the vtable, etc has a home. + virtual ~AllocationInst(); + /// isArrayAllocation - Return true if there is an allocation size parameter /// to the allocation instruction that is not 1. /// |