diff options
| author | Ralf Jung <post@ralfj.de> | 2025-08-18 07:19:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-18 07:19:57 +0000 |
| commit | 909d3297af98c4a3af35c1bb910b4306452d9599 (patch) | |
| tree | eb7c072ff377c4e688afdcc6a772c8a683cf1367 /compiler/rustc_codegen_llvm/src/llvm/mod.rs | |
| parent | fb8ac986b178ed977c3334ad27198b787e1e6140 (diff) | |
| parent | 5a3871d7b2521f9c6edbdcbc24d381d6fdef0f6d (diff) | |
| download | rust-909d3297af98c4a3af35c1bb910b4306452d9599.tar.gz rust-909d3297af98c4a3af35c1bb910b4306452d9599.zip | |
Merge pull request #4528 from rust-lang/rustup-2025-08-18
Automatic Rustup
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/mod.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/mod.rs b/compiler/rustc_codegen_llvm/src/llvm/mod.rs index 154ba4fd690..0ea0af0c9af 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/mod.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/mod.rs @@ -42,32 +42,6 @@ pub(crate) fn AddFunctionAttributes<'ll>( } } -pub(crate) fn HasAttributeAtIndex<'ll>( - llfn: &'ll Value, - idx: AttributePlace, - kind: AttributeKind, -) -> bool { - unsafe { LLVMRustHasAttributeAtIndex(llfn, idx.as_uint(), kind) } -} - -pub(crate) fn HasStringAttribute<'ll>(llfn: &'ll Value, name: &str) -> bool { - unsafe { LLVMRustHasFnAttribute(llfn, name.as_c_char_ptr(), name.len()) } -} - -pub(crate) fn RemoveStringAttrFromFn<'ll>(llfn: &'ll Value, name: &str) { - unsafe { LLVMRustRemoveFnAttribute(llfn, name.as_c_char_ptr(), name.len()) } -} - -pub(crate) fn RemoveRustEnumAttributeAtIndex( - llfn: &Value, - place: AttributePlace, - kind: AttributeKind, -) { - unsafe { - LLVMRustRemoveEnumAttributeAtIndex(llfn, place.as_uint(), kind); - } -} - pub(crate) fn AddCallSiteAttributes<'ll>( callsite: &'ll Value, idx: AttributePlace, |
