Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate llvm_struct #2183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
* Add `mir_equal` and `jvm_equal` commands, which mirror the `llvm_equal`
command for the MIR and JVM backends, respectively.

## Deprecations

* `llvm_struct` has been marked deprecated.
It is the same as `llvm_alias` and you should use this instead.
(If you were looking for a function to create a struct type from its
contents, that's `llvm_struct_type`.)

## Bug fixes

* SAW now accepts Unicode input beyond characters 0..255, including in
Expand Down
3 changes: 2 additions & 1 deletion src/SAWScript/Interpreter.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2773,8 +2773,9 @@ primitives = Map.fromList
]
, prim "llvm_struct" "String -> LLVMType"
(pureVal llvm_alias)
Current
Deprecated
[ "Legacy alternative name for `llvm_alias`."
, "If you are trying to cons a struct type by its contents, you want llvm_struct_type."
]

, prim "llvm_pointer" "LLVMType -> LLVMType"
Expand Down
Loading