Skip to content

Commit 719806a

Browse files
committed
Additional improvements to internal macros
- Allow usage of `#[llvm_versions(..)]` in more places - In some cases this requires use of a new macro, `#[llvm_versioned_item]` - Add `#[llvm_enum(LLVM_ENUM_NAME)]` which automatically derives conversions to and from an LLVM enum and its Rust equivalent, and allows use of `#[llvm_versions(..)]` on its variants. - Used the above to clean up the code for `InstructionOpcode`
1 parent a4d38cf commit 719806a

File tree

4 files changed

+406
-171
lines changed

4 files changed

+406
-171
lines changed

internal_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build = "build.rs"
77

88
[dependencies]
99
quote = "0.6"
10-
syn = { version = "0.15", features = ["full"] }
10+
syn = { version = "0.15", features = ["full", "fold"] }
1111
proc-macro2 = "0.4"
1212

1313
[build-dependencies]

0 commit comments

Comments
 (0)