1
Fork 0

Move LLVMRustAttribute[Kind] out of LLVMWrapper.h

This commit is contained in:
Zalathar 2024-11-04 12:11:01 +11:00
parent 42188c3ca8
commit 44a056a50b
3 changed files with 92 additions and 91 deletions

View file

@ -204,7 +204,7 @@ pub enum DLLStorageClass {
DllExport = 2, // Function to be accessible from DLL.
}
/// Matches LLVMRustAttribute in LLVMWrapper.h
/// Must match the layout of `LLVMRustAttributeKind`.
/// Semantically a subset of the C++ enum llvm::Attribute::AttrKind,
/// though it is not ABI compatible (since it's a C++ enum)
#[repr(C)]