Rename OperandBundleOwned to OperandBundleBox
As with `DIBuilderBox`, the "Box" suffix does a better job of communicating that this is an owning pointer to some borrowable resource. This also renames the `raw` method to `as_ref`, which is what it would have been named originally if the `Deref` problem had been known at the time.
This commit is contained in:
@@ -67,12 +67,12 @@ use crate::value::Value;
|
||||
/// the `OperandBundleDef` value created for MSVC landing pads.
|
||||
pub(crate) struct Funclet<'ll> {
|
||||
cleanuppad: &'ll Value,
|
||||
operand: llvm::OperandBundleOwned<'ll>,
|
||||
operand: llvm::OperandBundleBox<'ll>,
|
||||
}
|
||||
|
||||
impl<'ll> Funclet<'ll> {
|
||||
pub(crate) fn new(cleanuppad: &'ll Value) -> Self {
|
||||
Funclet { cleanuppad, operand: llvm::OperandBundleOwned::new("funclet", &[cleanuppad]) }
|
||||
Funclet { cleanuppad, operand: llvm::OperandBundleBox::new("funclet", &[cleanuppad]) }
|
||||
}
|
||||
|
||||
pub(crate) fn cleanuppad(&self) -> &'ll Value {
|
||||
@@ -80,7 +80,7 @@ impl<'ll> Funclet<'ll> {
|
||||
}
|
||||
|
||||
pub(crate) fn bundle(&self) -> &llvm::OperandBundle<'ll> {
|
||||
self.operand.raw()
|
||||
self.operand.as_ref()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user