Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 1345 Build 1345: arc lint + arc unit
Event Timeline
Comment Actions
Thanks, this will fix http://llvm.org/PR28751
LGTM with the points below addressed:
include/llvm/Support/BranchProbability.h | ||
---|---|---|
73 | I would lean towards just adding a getRaw() const function and leaving the printing to the MIRPrinter in the grounds that there is no matching parseRaw() function here as well. The fact that the current code broke, is because the MIRPrinter was implemented with print() whose format changed in time, while the parse in MIParser stayed the same. | |
lib/CodeGen/MIRPrinter.cpp | ||
485 | I'd lean towards printing it in hex. |
I would lean towards just adding a getRaw() const function and leaving the printing to the MIRPrinter in the grounds that there is no matching parseRaw() function here as well.
The fact that the current code broke, is because the MIRPrinter was implemented with print() whose format changed in time, while the parse in MIParser stayed the same.