diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-03-03 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-03-03 00:28:50 +0100 |
| commit | 926bf1a3718fc408b2d75a7536b7a2ed3d2d070b (patch) | |
| tree | 524c12d755ea38356df8ddac19baa8d3856c313e /compiler/rustc_llvm/llvm-wrapper | |
| parent | 08504c64aa7c4163a51c1982ed10075bb89cec0e (diff) | |
| download | rust-926bf1a3718fc408b2d75a7536b7a2ed3d2d070b.tar.gz rust-926bf1a3718fc408b2d75a7536b7a2ed3d2d070b.zip | |
Pass LLVM string attributes as string slices
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 919fe7cac5c..ef6c9ef6627 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -267,12 +267,6 @@ extern "C" LLVMAttributeRef LLVMRustCreateAttrNoValue(LLVMContextRef C, return wrap(Attribute::get(*unwrap(C), fromRust(RustAttr))); } -extern "C" LLVMAttributeRef LLVMRustCreateAttrStringValue(LLVMContextRef C, - const char *Name, - const char *Value) { - return wrap(Attribute::get(*unwrap(C), StringRef(Name), StringRef(Value))); -} - extern "C" LLVMAttributeRef LLVMRustCreateAlignmentAttr(LLVMContextRef C, uint64_t Bytes) { return wrap(Attribute::getWithAlignment(*unwrap(C), llvm::Align(Bytes))); |
