<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Is there a reason that RecordKeeper:: getAllDerivedDefinitions(...) implementation <div>accesses the global Records instance instead of just referencing itself?<div><br></div><div>As far as I can tell from the usage:</div><div><br></div><div>1) Records has the linkage as extern RecordKeeper Records in Record.h</div><div>2) Is instantiated as a global in TableGen</div><div>3) All llvm uses of getAllDerivedDefinitions SEEM to be manifested as a </div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div>message to this global RecordKeeper</div></div><div><br></div></blockquote>In short getAllDerivedDefinitions(...) sort of (non-static) treats RecordKeeper <div>as a singleton but it is never accessed this way. It is always accessed via</div><div>the global: Records.</div><div><br></div><div>Pointers to what I'm missing would be helpful.</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Garrison</div></body></html>