diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-20 19:13:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-20 19:13:04 +0000 |
| commit | c9bdc871cac72ee367475419ad3d7d5f352c0365 (patch) | |
| tree | ca0b98202bf11b6677f208612a084ba186f81815 /llvm | |
| parent | 0d94bacd628bb3e8eb692ad3c6460172b96040d2 (diff) | |
| download | bcm5719-llvm-c9bdc871cac72ee367475419ad3d7d5f352c0365.tar.gz bcm5719-llvm-c9bdc871cac72ee367475419ad3d7d5f352c0365.zip | |
Add new method, ensureTypeAvailable
llvm-svn: 208
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/ConstantPool.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/ConstantPool.h b/llvm/include/llvm/ConstantPool.h index ad4d64ac5b7..c3d91f5fc42 100644 --- a/llvm/include/llvm/ConstantPool.h +++ b/llvm/include/llvm/ConstantPool.h @@ -52,6 +52,7 @@ public: void insert(ConstPoolVal *N); bool remove(ConstPoolVal *N); // Returns true on failure + // delete_all - Remove all elements from the constant pool void delete_all(); // find - Search to see if a constant of the specified value is already in @@ -71,6 +72,12 @@ public: inline plane_const_iterator begin() const { return Planes.begin(); } inline plane_iterator end() { return Planes.end(); } inline plane_const_iterator end() const { return Planes.end(); } + + // ensureTypeAvailable - This is used to make sure that the specified type is + // in the constant pool. If it is not already in the constant pool, it is + // added. + // + const Type *ensureTypeAvailable(const Type *); }; #endif |

