summaryrefslogtreecommitdiff
path: root/include/llvm/Constant.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-14 03:30:23 +0000
committerChris Lattner <sabre@nondot.org>2002-10-14 03:30:23 +0000
commit34048e2ace447e5bdbd386d599ce768e19e6b18b (patch)
treef56b5306899d4281196e5339abf3f08797cc7f5f /include/llvm/Constant.h
parent9e932bd566f7cd2c1602b5b5ed4e46e2e00bf736 (diff)
downloadllvm-34048e2ace447e5bdbd386d599ce768e19e6b18b.tar.gz
llvm-34048e2ace447e5bdbd386d599ce768e19e6b18b.tar.bz2
llvm-34048e2ace447e5bdbd386d599ce768e19e6b18b.tar.xz
- 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/Constant.h')
-rw-r--r--include/llvm/Constant.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index 3105cea319..a7ec6331bd 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -79,7 +79,7 @@ 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) { return 0; }
+ unsigned mutateReferences(Value* OldV, Value *NewV);
// END WARNING!!
};