labath added a subscriber: labath. ================ Comment at: include/lldb/Core/EmulateInstruction.h:406-410 @@ -405,4 +405,7 @@ - virtual bool - IsInstructionConditional() { return false; } + // Returns a condition code in the for of uint32_t where UINT32_MAX means that the instruction + // is not conditional and other values specify the condition of the instruction in an + // architecture specififc way. + virtual uint32_t + GetInstructionCondition() { return UINT32_MAX; } ---------------- clayborg wrote: > Add: > ``` > virtual uint32_t > GetUnconditionalCondition () { return 0; }; > ``` > > And change GetInstructionCondition to use the above function: > > ``` > virtual uint32_t > GetInstructionCondition() { return GetUnconditionalCondition (); } > ``` > > See inline comments below for more info... How about ``` virtual llvm::Optional<uint32_t> GetInstructionCondition() { return llvm::NoneType; } ``` ?
http://reviews.llvm.org/D16814 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits