Lines Matching defs:size

1 //===-- llvm-size.cpp - Print the size of each object section ---*- C++ -*-===//
9 // This program is a utility that works like traditional Unix "size",
10 // that is, it prints out the size of each section, and the total size of all
36 cl::OptionCategory SizeCat("llvm-size Options");
79 "radix", cl::desc("Print size in radix"), cl::init(decimal),
80 cl::values(clEnumValN(octal, "8", "Print size in octal"),
81 clEnumValN(decimal, "10", "Print size in decimal"),
82 clEnumValN(hexadecimal, "16", "Print size in hexadecimal")),
86 cl::desc("Print size in radix:"),
87 cl::values(clEnumValN(octal, "o", "Print size in octal"),
88 clEnumValN(decimal, "d", "Print size in decimal"),
89 clEnumValN(hexadecimal, "x", "Print size in hexadecimal")),
167 return result.size();
198 /// Total size of all ELF common symbols
207 /// Print the size of each Mach-O segment and section in @p MachO.
210 /// output as darwin's size(1) -m output.
240 outs() << format(fmt.str().c_str(), Sec.size);
245 sec_total += Sec.size;
267 uint64_t Sec_size = Sec.size;
273 sec_total += Sec.size;
285 /// produces the same output as darwin's size(1) default output.
299 total_text += Sec.size;
301 total_data += Sec.size;
303 total_objc += Sec.size;
305 total_others += Sec.size;
325 total_text += Sec.size;
327 total_data += Sec.size;
329 total_objc += Sec.size;
331 total_others += Sec.size;
357 /// Print the size of each section in @p Obj.
367 // size(1) -m output, else if OutputFormat is darwin and not a Mach-O object
380 std::size_t max_size_len = strlen("size");
385 uint64_t size = Section.getSize();
386 total += size;
395 max_name_len = std::max(max_name_len, name_or_err->size());
396 max_size_len = std::max(max_size_len, getNumLengthAsString(size));
412 static_cast<const char *>("size"),
432 uint64_t size = Section.getSize();
434 outs() << format(fmt.str().c_str(), name_or_err->str().c_str(), size, addr);
453 // displays the cumulative size for each section type.
460 uint64_t size = Section.getSize();
465 total_text += size;
467 total_data += size;
469 total_bss += size;
585 for (unsigned i = 0; i < ArchFlags.size(); ++i) {
599 if (MoreThanOneFile || ArchFlags.size() > 1)
605 if (!MachO || MoreThanOneFile || ArchFlags.size() > 1)
613 error(std::move(E), file, ArchFlags.size() > 1 ?
628 ArchFlags.size() > 1 ?
647 if (ArchFlags.size() > 1)
864 cl::ParseCommandLineOptions(argc, argv, "llvm object size dumper\n");
887 MoreThanOneFile = InputFilenames.size() > 1;