Option -print-llvm-inline-tree for printing the inline-tree of the LLVM module.

This is useful to get information about what inlined functions contribute to the code size.
This commit is contained in:
Erik Eckstein
2016-02-10 11:40:16 -08:00
parent 91e36c9574
commit 9e28192ea3
9 changed files with 394 additions and 1 deletions

View File

@@ -1175,6 +1175,7 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
}
Opts.GenerateProfile |= Args.hasArg(OPT_profile_generate);
Opts.PrintInlineTree |= Args.hasArg(OPT_print_llvm_inline_tree);
if (Args.hasArg(OPT_embed_bitcode))
Opts.EmbedMode = IRGenEmbedMode::EmbedBitcode;