summaryrefslogtreecommitdiff
path: root/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-21 20:13:12 +0000
committerOwen Anderson <resistor@mac.com>2009-07-21 20:13:12 +0000
commit16e298f98024bcff5c7219a96cac216114c30dad (patch)
tree55acff96b5d4269c41ac5560af928728332265ba /lib/VMCore/LLVMContext.cpp
parentb3e717192635873a0d8491fc45ddb64c0e4bda15 (diff)
downloadllvm-16e298f98024bcff5c7219a96cac216114c30dad.tar.gz
llvm-16e298f98024bcff5c7219a96cac216114c30dad.tar.bz2
llvm-16e298f98024bcff5c7219a96cac216114c30dad.tar.xz
Privatize the first of the value maps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r--lib/VMCore/LLVMContext.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp
index 5e009ea6df..782a87b04b 100644
--- a/lib/VMCore/LLVMContext.cpp
+++ b/lib/VMCore/LLVMContext.cpp
@@ -167,7 +167,7 @@ Constant* LLVMContext::getConstantStruct(Constant* const *Vals,
// ConstantAggregateZero accessors.
ConstantAggregateZero* LLVMContext::getConstantAggregateZero(const Type* Ty) {
- return ConstantAggregateZero::get(Ty);
+ return pImpl->getConstantAggregateZero(Ty);
}
@@ -649,3 +649,7 @@ void LLVMContext::erase(MDString *M) {
void LLVMContext::erase(MDNode *M) {
pImpl->erase(M);
}
+
+void LLVMContext::erase(ConstantAggregateZero *Z) {
+ pImpl->erase(Z);
+} \ No newline at end of file