Function is_declaration

Source
pub fn is_declaration(val: &ValueRef) -> bool
Expand description

Determine if the global value is a declaration.

§Details

Checks if the global value is a declaration.

This function wraps the LLVMIsDeclaration function from the LLVM core library. It determines whether the global value represented by ValueRef is merely a declaration (i.e., it declares the existence of a symbol but does not define it). Declarations are often used to reference functions or variables that are defined in another module or later in the same module.

§Returns

Returns true if the global value is a declaration, otherwise returns false.