mirror of
https://github.com/rui314/mold.git
synced 2024-12-27 10:23:41 +03:00
Rename -perf and -stats
This commit is contained in:
parent
b4dda46b2c
commit
554235f4da
@ -275,10 +275,10 @@ void parse_nonpositional_args(std::span<std::string_view> args,
|
||||
config.relax = true;
|
||||
} else if (read_flag(args, "no-relax")) {
|
||||
config.relax = false;
|
||||
} else if (read_flag(args, "print-perf")) {
|
||||
config.print_perf = true;
|
||||
} else if (read_flag(args, "print-stats")) {
|
||||
config.print_stats = true;
|
||||
} else if (read_flag(args, "perf")) {
|
||||
config.perf = true;
|
||||
} else if (read_flag(args, "stats")) {
|
||||
config.stats = true;
|
||||
Counter::enabled = true;
|
||||
} else if (read_z_flag(args, "now")) {
|
||||
config.z_now = true;
|
||||
|
4
main.cc
4
main.cc
@ -1306,10 +1306,10 @@ int main(int argc, char **argv) {
|
||||
print_map();
|
||||
|
||||
// Show stats numbers
|
||||
if (config.print_stats)
|
||||
if (config.stats)
|
||||
show_stats();
|
||||
|
||||
if (config.print_perf)
|
||||
if (config.perf)
|
||||
Timer::print();
|
||||
|
||||
std::cout << std::flush;
|
||||
|
4
mold.h
4
mold.h
@ -73,17 +73,17 @@ struct Config {
|
||||
bool hash_style_sysv = true;
|
||||
bool icf = false;
|
||||
bool is_static = false;
|
||||
bool perf = false;
|
||||
bool pic = false;
|
||||
bool pie = false;
|
||||
bool preload = false;
|
||||
bool print_gc_sections = false;
|
||||
bool print_icf_sections = false;
|
||||
bool print_map = false;
|
||||
bool print_perf = false;
|
||||
bool print_stats = false;
|
||||
bool quick_exit = true;
|
||||
bool relax = true;
|
||||
bool shared = false;
|
||||
bool stats = false;
|
||||
bool strip_all = false;
|
||||
bool trace = false;
|
||||
bool z_defs = false;
|
||||
|
Loading…
Reference in New Issue
Block a user