From 926bf1a3718fc408b2d75a7536b7a2ed3d2d070b Mon Sep 17 00:00:00 2001 From: Tomasz Miąsko Date: Thu, 3 Mar 2022 00:00:00 +0000 Subject: Pass LLVM string attributes as string slices --- compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp') 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))); -- cgit 1.4.1-3-g733a5