labath marked an inline comment as done.
labath added inline comments.

================
Comment at: source/Plugins/Language/CPlusPlus/LibCxxBitset.cpp:62
+
+  m_bool_type = 
m_backend.GetCompilerType().GetBasicTypeFromAST(eBasicTypeBool);
+  m_elements.assign(size, ValueObjectSP());
----------------
jingham wrote:
> Does this need to be done every time you Update?  Couldn't you do this in the 
> constructor instead?  This is probably pretty cheap call, so it doesn't 
> matter much, but it seems odd.
The other pretty printers were doing all of their initialization in the Update 
function, but I don't see a reason why this couldn't be done in the 
constructor. In that case, I can probably do the byte order and pointer size 
computation there as well.


https://reviews.llvm.org/D39966



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

Reply via email to