davidxl added a comment. Should add a test case in test/Driver/instrprof-ld.c.
================ Comment at: lib/CodeGen/BackendUtil.cpp:435 @@ +434,3 @@ + if (CodeGenOpts.ProfileIRInstr) { + assert (!CodeGenOpts.ProfileInstrGenerate); + if (!CodeGenOpts.InstrProfileOutput.empty()) ---------------- What is this asserting about? ================ Comment at: lib/Frontend/CompilerInvocation.cpp:453 @@ +452,3 @@ + Opts.ProfileIRInstr = Args.hasArg(OPT_fprofile_ir_instr); + if (!Opts.ProfileIRInstr) + Opts.ProfileInstrGenerate = Args.hasArg(OPT_fprofile_instr_generate) || ---------------- Add a comment here. http://reviews.llvm.org/D15829 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits