-
Notifications
You must be signed in to change notification settings - Fork 15.4k
[XCOFF][llvm-readobj] Print symbol value kind when dumping symbols #125861
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -692,22 +692,26 @@ static StringRef GetSymbolValueName(XCOFF::StorageClass SC) { | |
| case XCOFF::C_BLOCK: | ||
| return "Value (RelocatableAddress)"; | ||
| case XCOFF::C_FILE: | ||
| case XCOFF::C_BSTAT: | ||
| return "Value (SymbolTableIndex)"; | ||
| case XCOFF::C_DWARF: | ||
| return "Value (OffsetInDWARF)"; | ||
| case XCOFF::C_FUN: | ||
jh7370 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| case XCOFF::C_STSYM: | ||
| return "Value (OffsetInCSect)"; | ||
| case XCOFF::C_BINCL: | ||
| case XCOFF::C_EINCL: | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No coverage for
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since we has a test for C_BINCL and XCOFF::C_EINCL has the same code with XCOF:: C_BINCL , do we need to add a test for XCOFF::C_EINCL?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As this is quite a complex set of logic (lots of folded-together |
||
| return "Value (OffsetInFile)"; | ||
| case XCOFF::C_INFO: | ||
| case XCOFF::C_BSTAT: | ||
| return "Value (OffsetInCommentSection)"; | ||
| case XCOFF::C_LSYM: | ||
| case XCOFF::C_PSYM: | ||
jh7370 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| return "Value (OffsetRelToStackFrame)"; | ||
| case XCOFF::C_RPSYM: | ||
jh7370 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| case XCOFF::C_RSYM: | ||
| return "Value (RegisterNumber)"; | ||
| case XCOFF::C_ECOML: | ||
| assert(false && "This StorageClass for the symbol is not yet implemented."); | ||
| return ""; | ||
| return "Value (OffsetInCommBlock)"; | ||
| default: | ||
| return "Value"; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.