pub trait LlvmSymbolName: Op + SymbolOpInterface {
// Provided methods
fn llvm_symbol_name(&self, ctx: &Context) -> Option<String> { ... }
fn set_llvm_symbol_name(&self, ctx: &Context, name: String) { ... }
}Expand description
Since LLVM symbols can have characters that are illegal in pliron, this interface provides a way to get the original LLVM symbol name.
Provided Methods§
Sourcefn llvm_symbol_name(&self, ctx: &Context) -> Option<String>
fn llvm_symbol_name(&self, ctx: &Context) -> Option<String>
Get the original LLVM symbol name, if it’s different from the pliron symbol name.
Sourcefn set_llvm_symbol_name(&self, ctx: &Context, name: String)
fn set_llvm_symbol_name(&self, ctx: &Context, name: String)
Set the original LLVM symbol name.
Trait Implementations§
impl OpInterfaceMarker for dyn LlvmSymbolName
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".