wallace accepted this revision.
wallace added a comment.

just remove that comment. I've just pushed Sujin's diff as well, so you can 
rebase



================
Comment at: lldb/include/lldb/lldb-enumerations.h:975-976
 /// A single instruction can match one or more of these categories.
+/// The enum -> string conversion is in Disassembler.cpp, don't change
+/// this enum without updating that code as well.
 enum InstructionControlFlowKind {
----------------
you can safely remove this comment because the compiler will complain if a new 
enum value is added and the switch case in GetNameForInstructionControlFlowKind 
is not updated


================
Comment at: lldb/source/Core/Disassembler.cpp:930
+  }
+}
+
----------------
persona0220 wrote:
> jj10306 wrote:
> > Thoughts on adding a default case with a string that indicates that no 
> > string conversion was implemented for the provided variant?
> > This would potentially make it easier for someone to realize they didn't 
> > add a case here for a newly added variant of InstructionControlFlowKind. 
> > Otherwise undefined data would be returned if a new case isn't added for a 
> > new variant.
> > wdyt?
> I agree to add a default here! 
no defaults for enums, otherwise the compiler won't complain if a new enum 
value is added and a case is not added here


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130580/new/

https://reviews.llvm.org/D130580

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

Reply via email to