Skip to content

Conversation

tobias-stadler
Copy link
Contributor

Reland #156511 after fixing a build failure not caught by clang. The
default implementation of parseRecord is currently unused. Apparently,
clang doesn't type check uninstantiated methods in class templates. To
avoid this footgun, we = delete the impl for now.

Original message:

In preparation of larger changes to the bitstream remark format,
refactor the error handling code in the BitstreamRemarkParser.

Main change: move the various static helper methods into the parser
helper classes, so we don't need to pass around as many args. Calling
error(...) inside the helper classes now automatically prepends the
current block being parsed to the error message.

NFCI (except for error messages on invalid bitstream files).

Created using spr 1.3.7-wip
@tobias-stadler tobias-stadler merged commit 45f1440 into main Sep 16, 2025
10 checks passed
@tobias-stadler tobias-stadler deleted the users/tobias-stadler/spr/reland-remarks-bitstreamremarkparser-refactor-error-handling branch September 16, 2025 12:17
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Sep 16, 2025
…ndling" (#158667)

Reland #156511 after fixing a build failure not caught by clang. The
default implementation of `parseRecord` is currently unused. Apparently,
clang doesn't type check uninstantiated methods in class templates. To
avoid this footgun, we `= delete` the impl for now.

Original message:

In preparation of larger changes to the bitstream remark format,
refactor the error handling code in the BitstreamRemarkParser.

Main change: move the various static helper methods into the parser
helper classes, so we don't need to pass around as many args. Calling
`error(...)` inside the helper classes now automatically prepends the
current block being parsed to the error message.

NFCI (except for error messages on invalid bitstream files).

Pull Request: llvm/llvm-project#158667
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.

2 participants