}
}
-pub fn C_floating_f64(f: f64, t: Type) -> ValueRef {
- unsafe {
- llvm::LLVMConstReal(t.to_ref(), f)
- }
-}
-
pub fn C_nil(ccx: &CrateContext) -> ValueRef {
C_struct(ccx, &[], false)
}
}
}
-fn is_const_integral(v: ValueRef) -> bool {
+pub fn is_const_integral(v: ValueRef) -> bool {
unsafe {
!llvm::LLVMIsAConstantInt(v).is_null()
}