Skip to content

Commit

Permalink
Or not for BasicValue
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX authored and TheDan64 committed Feb 7, 2024
1 parent 34e989c commit e0cc92d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/values/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use llvm_sys::prelude::LLVMValueRef;
#[llvm_versions(12.0..=latest)]
use llvm_sys::core::LLVMIsPoison;

use std::ffi::CStr;
use std::fmt::Debug;

use crate::support::LLVMString;
Expand Down Expand Up @@ -110,11 +109,6 @@ pub unsafe trait BasicValue<'ctx>: AnyValue<'ctx> {
unsafe { Value::new(self.as_value_ref()).get_first_use() }
}

/// Get the name of a `BasicValue`.
fn get_name(&self) -> &CStr {
unsafe { Value::new(self.as_value_ref()).get_name() }
}

/// Sets the name of a `BasicValue`. If the value is a constant, this is a noop.
fn set_name(&self, name: &str) {
unsafe { Value::new(self.as_value_ref()).set_name(name) }
Expand Down

0 comments on commit e0cc92d

Please sign in to comment.