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

[llvm-ifs] Treat unknown symbol types as error. #75872

Merged
merged 3 commits into from Jan 12, 2024

Conversation

zeroomega
Copy link
Contributor

Before this patch, when an unknown symbol type is used in IFS stub, it will be treated as a NO_TYPE and parsed without error. This patch makes llvm-ifs throw an error when this scenario happens.

Before this patch, when an unknown symbol type is used in IFS stub, it
will be treated as a NO_TYPE and parsed without error. This patch makes
llvm-ifs throw an error when this scenario happens.
Copy link
Collaborator

@jh7370 jh7370 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really see anything stylistically wrong with this patch, but it needs review from another person who uses the tool. (I'm only chiming in because I was added as a reviewer explicitly).

llvm/test/tools/llvm-ifs/ifs-read-invalid-symbol-type.test Outdated Show resolved Hide resolved
llvm/unittests/InterfaceStub/ELFYAMLTest.cpp Show resolved Hide resolved
llvm/lib/InterfaceStub/IFSHandler.cpp Outdated Show resolved Hide resolved
llvm/unittests/InterfaceStub/ELFYAMLTest.cpp Outdated Show resolved Hide resolved
llvm/lib/InterfaceStub/IFSHandler.cpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@jh7370 jh7370 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please wait for @petrhosek.

@zeroomega zeroomega merged commit 8e9c531 into llvm:main Jan 12, 2024
4 checks passed
justinfargnoli pushed a commit to justinfargnoli/llvm-project that referenced this pull request Jan 28, 2024
Before this patch, when an unknown symbol type is used in IFS stub, it
will be treated as a NO_TYPE and parsed without error. This patch makes
llvm-ifs throw an error when this scenario happens.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants