summaryrefslogtreecommitdiff
path: root/include/llvm/LLVMContext.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-21 20:55:28 +0000
committerOwen Anderson <resistor@mac.com>2009-07-21 20:55:28 +0000
commit822ccd9974a17979d2cb9c6c118f94549055b7d4 (patch)
tree66b5ecb11b41613c409a726addc82dd054c9de70 /include/llvm/LLVMContext.h
parentf6fa8ae267e0320dcee609b6bb4061bde3b62ba4 (diff)
downloadllvm-822ccd9974a17979d2cb9c6c118f94549055b7d4.tar.gz
llvm-822ccd9974a17979d2cb9c6c118f94549055b7d4.tar.bz2
llvm-822ccd9974a17979d2cb9c6c118f94549055b7d4.tar.xz
Privatize the ConstantArray table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/LLVMContext.h')
-rw-r--r--include/llvm/LLVMContext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/LLVMContext.h b/include/llvm/LLVMContext.h
index 0d0b6624dc..134311e98a 100644
--- a/include/llvm/LLVMContext.h
+++ b/include/llvm/LLVMContext.h
@@ -44,6 +44,7 @@ class Type;
class APInt;
class APFloat;
class Value;
+class Use;
/// This is an important class for using LLVM in a threaded context. It
/// (opaquely) owns and manages the core "global" data of LLVM's core
@@ -273,6 +274,11 @@ public:
void erase(MDString *M);
void erase(MDNode *M);
void erase(ConstantAggregateZero *Z);
+ void erase(ConstantArray *Z);
+
+ // RAUW helpers
+ Constant *replaceUsesOfWithOnConstant(ConstantArray *CA,
+ Value *From, Value *To, Use *U);
};
/// FOR BACKWARDS COMPATIBILITY - Returns a global context.