forked from osandov/drgn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libdrgn: use if instead of switch for dw_foo_str
Some constant types (e.g. DW_OP) have duplicate values for vendor specific extensions, so generating the dw_foo_str function for them results in "duplicate case value" compiler errors. Use if statements instead and use the first match. This doesn't change code generated for dw_tag_str with either GCC or Clang. Signed-off-by: Omar Sandoval <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters