about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-03-04 10:38:11 +0000
committerbors <bors@rust-lang.org>2022-03-04 10:38:11 +0000
commit047f9c4bc4e26df4f54c3c76af3e963782ed05e4 (patch)
tree38f0265287eb1fd99c918a06ee788ba01bc16bf7 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent62ff2bcf9485f52050093d1780f409d50953549b (diff)
parent926bf1a3718fc408b2d75a7536b7a2ed3d2d070b (diff)
downloadrust-047f9c4bc4e26df4f54c3c76af3e963782ed05e4.tar.gz
rust-047f9c4bc4e26df4f54c3c76af3e963782ed05e4.zip
Auto merge of #94539 - tmiasko:string-attributes, r=nikic
Pass LLVM string attributes as string slices
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp6
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)));