mirror of
https://github.com/rui314/mold.git
synced 2024-12-28 19:04:27 +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;
|
config.relax = true;
|
||||||
} else if (read_flag(args, "no-relax")) {
|
} else if (read_flag(args, "no-relax")) {
|
||||||
config.relax = false;
|
config.relax = false;
|
||||||
} else if (read_flag(args, "print-perf")) {
|
} else if (read_flag(args, "perf")) {
|
||||||
config.print_perf = true;
|
config.perf = true;
|
||||||
} else if (read_flag(args, "print-stats")) {
|
} else if (read_flag(args, "stats")) {
|
||||||
config.print_stats = true;
|
config.stats = true;
|
||||||
Counter::enabled = true;
|
Counter::enabled = true;
|
||||||
} else if (read_z_flag(args, "now")) {
|
} else if (read_z_flag(args, "now")) {
|
||||||
config.z_now = true;
|
config.z_now = true;
|
||||||
|
4
main.cc
4
main.cc
@ -1306,10 +1306,10 @@ int main(int argc, char **argv) {
|
|||||||
print_map();
|
print_map();
|
||||||
|
|
||||||
// Show stats numbers
|
// Show stats numbers
|
||||||
if (config.print_stats)
|
if (config.stats)
|
||||||
show_stats();
|
show_stats();
|
||||||
|
|
||||||
if (config.print_perf)
|
if (config.perf)
|
||||||
Timer::print();
|
Timer::print();
|
||||||
|
|
||||||
std::cout << std::flush;
|
std::cout << std::flush;
|
||||||
|
4
mold.h
4
mold.h
@ -73,17 +73,17 @@ struct Config {
|
|||||||
bool hash_style_sysv = true;
|
bool hash_style_sysv = true;
|
||||||
bool icf = false;
|
bool icf = false;
|
||||||
bool is_static = false;
|
bool is_static = false;
|
||||||
|
bool perf = false;
|
||||||
bool pic = false;
|
bool pic = false;
|
||||||
bool pie = false;
|
bool pie = false;
|
||||||
bool preload = false;
|
bool preload = false;
|
||||||
bool print_gc_sections = false;
|
bool print_gc_sections = false;
|
||||||
bool print_icf_sections = false;
|
bool print_icf_sections = false;
|
||||||
bool print_map = false;
|
bool print_map = false;
|
||||||
bool print_perf = false;
|
|
||||||
bool print_stats = false;
|
|
||||||
bool quick_exit = true;
|
bool quick_exit = true;
|
||||||
bool relax = true;
|
bool relax = true;
|
||||||
bool shared = false;
|
bool shared = false;
|
||||||
|
bool stats = false;
|
||||||
bool strip_all = false;
|
bool strip_all = false;
|
||||||
bool trace = false;
|
bool trace = false;
|
||||||
bool z_defs = false;
|
bool z_defs = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user