(name: &str)
| 337 | |
| 338 | impl LlvmMod { |
| 339 | pub fn new(name: &str) -> Self { |
| 340 | unsafe { |
| 341 | // TODO(RDambrosio016): does shouldDiscardNames affect NVVM at all? |
| 342 | let llcx = llvm::LLVMRustContextCreate(false); |
| 343 | let llmod = create_module(llcx, name) as *const _; |
| 344 | LlvmMod { llcx, llmod } |
| 345 | } |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | impl Drop for LlvmMod { |
nothing calls this directly
no test coverage detected