/// destroyConstant - Remove the constant from the constant table...
///
void ConstantArray::destroyConstant() {
+ // Implicitly locked.
ArrayConstants->remove(this);
destroyConstantImpl();
}
// destroyConstant - Remove the constant from the constant table...
//
void ConstantStruct::destroyConstant() {
+ // Implicitly locked.
StructConstants->remove(this);
destroyConstantImpl();
}
// destroyConstant - Remove the constant from the constant table...
//
void ConstantVector::destroyConstant() {
- sys::SmartScopedWriter<true> Write(&*ConstantsLock);
+ // Implicitly locked.
VectorConstants->remove(this);
destroyConstantImpl();
}
// destroyConstant - Remove the constant from the constant table...
//
void ConstantPointerNull::destroyConstant() {
- sys::SmartScopedWriter<true> Writer(&*ConstantsLock);
+ // Implicitly locked.
NullPtrConstants->remove(this);
destroyConstantImpl();
}
// destroyConstant - Remove the constant from the constant table...
//
void ConstantExpr::destroyConstant() {
- sys::SmartScopedWriter<true> Writer(&*ConstantsLock);
+ // Implicitly locked.
ExprConstants->remove(this);
destroyConstantImpl();
}