aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/BinaryFormat/DXContainer.cpp
diff options
context:
space:
mode:
authorAMS21 <AMS21.github@gmail.com>2025-10-07 16:49:39 +0200
committerGitHub <noreply@github.com>2025-10-07 14:49:39 +0000
commit01f4510118b8a9a3ca1f7f1e4b19bd2e918c7dc0 (patch)
treea982683165768f995093664a2a72a8f859fc3f50 /llvm/lib/BinaryFormat/DXContainer.cpp
parent6d44b9082e42b918a152098ec70ed409c4da8c79 (diff)
downloadllvm-01f4510118b8a9a3ca1f7f1e4b19bd2e918c7dc0.zip
llvm-01f4510118b8a9a3ca1f7f1e4b19bd2e918c7dc0.tar.gz
llvm-01f4510118b8a9a3ca1f7f1e4b19bd2e918c7dc0.tar.bz2
[LLVM-C] Upstream `LLVMGetOrInsertFunction` from rustc (#162235)
Add `LLVMGetOrInsertFunction` to the C API as a thin wrapper over `Module::getOrInsertFunction`, upstreamed from [rustc](https://github.com/rust-lang/rust/blob/d773bd07d63a74adcf25ea5f4aae986be94cac5e/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp#L203). It provides a single-call way to get or create a function declaration, avoiding `LLVMGetNamedFunction` + `LLVMAddFunction` and is more idiomatic.
Diffstat (limited to 'llvm/lib/BinaryFormat/DXContainer.cpp')
0 files changed, 0 insertions, 0 deletions