chandlerc added inline comments.

================
Comment at: lib/CodeGen/BackendUtil.cpp:843
 
   PGOOptions PGOOpt;
 
----------------
Maybe make this an optional to avoid the big predicate below?


================
Comment at: lib/CodeGen/BackendUtil.cpp:847-859
   if (PGOOpt.RunProfileGen)
     PGOOpt.ProfileGenFile = CodeGenOpts.InstrProfileOutput.empty() ?
       DefaultProfileGenName : CodeGenOpts.InstrProfileOutput;
 
   // -fprofile-use.
   if (CodeGenOpts.hasProfileIRUse())
     PGOOpt.ProfileUseFile = CodeGenOpts.ProfileInstrumentUsePath;
----------------
At least some of these seem mutually exclusive, so show that with `else if`?

I wonder, are all of these mutually exclusive?


https://reviews.llvm.org/D35746



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to