diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-14 03:30:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-14 03:30:23 +0000 |
commit | 34048e2ace447e5bdbd386d599ce768e19e6b18b (patch) | |
tree | f56b5306899d4281196e5339abf3f08797cc7f5f /include/llvm/Constants.h | |
parent | 9e932bd566f7cd2c1602b5b5ed4e46e2e00bf736 (diff) | |
download | external_llvm-34048e2ace447e5bdbd386d599ce768e19e6b18b.zip external_llvm-34048e2ace447e5bdbd386d599ce768e19e6b18b.tar.gz external_llvm-34048e2ace447e5bdbd386d599ce768e19e6b18b.tar.bz2 |
- Dramatically simplify the Constant::mutateReferences implementation,
allowing it to be called on all constant types (structures/arrays)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index a91c197..ec63458 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -439,12 +439,6 @@ public: static inline bool classof(const Value *V) { return isa<ConstantPointer>(V) && classof(cast<ConstantPointer>(V)); } - - // WARNING: Only to be used by Bytecode & Assembly Parsers! USER CODE SHOULD - // NOT USE THIS!! - // Returns the number of uses of OldV that were replaced. - virtual unsigned mutateReferences(Value* OldV, Value *NewV); - // END WARNING!! }; @@ -502,14 +496,6 @@ public: static inline bool classof(const Value *V) { return isa<Constant>(V) && classof(cast<Constant>(V)); } - -public: - // WARNING: Only to be used by Bytecode & Assembly Parsers! USER CODE SHOULD - // NOT USE THIS!! - // Returns the number of uses of OldV that were replaced. - virtual unsigned mutateReferences(Value* OldV, Value *NewV); - // END WARNING!! }; - #endif |