aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-11 04:27:19 +0000
committerChris Lattner <sabre@nondot.org>2001-09-11 04:27:19 +0000
commit871ffd7a2e03209bfea8b197a4a50759abd4065e (patch)
treef9a5c2a7f64eeba36a3a9b22a51ab35862f32c16
parente93cdce4c9d3cbc991f662bf81efa1904acbf023 (diff)
downloadexternal_llvm-871ffd7a2e03209bfea8b197a4a50759abd4065e.zip
external_llvm-871ffd7a2e03209bfea8b197a4a50759abd4065e.tar.gz
external_llvm-871ffd7a2e03209bfea8b197a4a50759abd4065e.tar.bz2
Disable destructors on constants
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@547 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ConstPoolVals.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/ConstPoolVals.h b/include/llvm/ConstPoolVals.h
index 670cdfc..09260b5 100644
--- a/include/llvm/ConstPoolVals.h
+++ b/include/llvm/ConstPoolVals.h
@@ -22,6 +22,7 @@ class StructType;
class ConstPoolVal : public User {
protected:
inline ConstPoolVal(const Type *Ty) : User(Ty, Value::ConstantVal) {}
+ ~ConstPoolVal() {}
public:
// Specialize setName to handle symbol table majik...
@@ -46,6 +47,7 @@ class ConstPoolBool : public ConstPoolVal {
bool Val;
ConstPoolBool(const ConstPoolBool &); // DO NOT IMPLEMENT
ConstPoolBool(bool V);
+ ~ConstPoolBool() {}
public:
static ConstPoolBool *True, *False; // The True & False values
@@ -73,6 +75,7 @@ protected:
} Val;
ConstPoolInt(const ConstPoolInt &); // DO NOT IMPLEMENT
ConstPoolInt(const Type *Ty, uint64_t V);
+ ~ConstPoolInt() {}
public:
// equalsInt - Provide a helper method that can be used to determine if the
// constant contained within is equal to a constant. This only works for very
@@ -98,6 +101,7 @@ class ConstPoolSInt : public ConstPoolInt {
ConstPoolSInt(const ConstPoolSInt &); // DO NOT IMPLEMENT
protected:
ConstPoolSInt(const Type *Ty, int64_t V);
+ ~ConstPoolSInt() {}
public:
static ConstPoolSInt *get(const Type *Ty, int64_t V);
@@ -115,6 +119,7 @@ class ConstPoolUInt : public ConstPoolInt {
ConstPoolUInt(const ConstPoolUInt &); // DO NOT IMPLEMENT
protected:
ConstPoolUInt(const Type *Ty, uint64_t V);
+ ~ConstPoolUInt() {}
public:
static ConstPoolUInt *get(const Type *Ty, uint64_t V);
@@ -133,6 +138,7 @@ class ConstPoolFP : public ConstPoolVal {
ConstPoolFP(const ConstPoolFP &); // DO NOT IMPLEMENT
protected:
ConstPoolFP(const Type *Ty, double V);
+ ~ConstPoolFP() {}
public:
static ConstPoolFP *get(const Type *Ty, double V);
@@ -150,6 +156,7 @@ class ConstPoolArray : public ConstPoolVal {
ConstPoolArray(const ConstPoolArray &); // DO NOT IMPLEMENT
protected:
ConstPoolArray(const ArrayType *T, const vector<ConstPoolVal*> &Val);
+ ~ConstPoolArray() {}
public:
static ConstPoolArray *get(const ArrayType *T, const vector<ConstPoolVal*> &);
@@ -166,6 +173,7 @@ class ConstPoolStruct : public ConstPoolVal {
ConstPoolStruct(const ConstPoolStruct &); // DO NOT IMPLEMENT
protected:
ConstPoolStruct(const StructType *T, const vector<ConstPoolVal*> &Val);
+ ~ConstPoolStruct() {}
public:
static ConstPoolStruct *get(const StructType *T,
const vector<ConstPoolVal*> &V);