8000 [llvm-size] Initialize Radix to correct value by vitalybuka · Pull Request #128447 · llvm/llvm-project · GitHub
[go: up one dir, main page]

Skip to content

[llvm-size] Initialize Radix to correct value #128447

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

Merged
Changes from 1 commit
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
Next Next commit
[𝘀𝗽𝗿] initial version
Created using spr 1.3.4
  • Loading branch information
vitalybuka committed Feb 24, 2025
commit 1cf1035a298e6ee6c255d885bfbf7bc8b75d0581
8 changes: 6 additions & 2 deletions llvm/tools/llvm-size/llvm-size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -899,17 +899,21 @@ int llvm_size_main(int argc, char **argv, const llvm::ToolContext &) {
OutputFormat = darwin;
else if (V == "sysv")
OutputFormat = sysv;
else
else {
error("--format value should be one of: 'berkeley', 'darwin', 'sysv'");
return 1;
}
V = Args.getLastArgValue(OPT_radix_EQ, "10");
if (V == "8")
Radix = RadixTy::octal;
else if (V == "10")
Radix = RadixTy::decimal;
else if (V == "16")
Radix = RadixTy::hexadecimal;
else
else {
error("--radix value should be one of: 8, 10, 16 ");
return 1;
}

for (const auto *A : Args.filtered(OPT_arch_EQ)) {
SmallVector<StringRef, 2> Values;
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0