carbon-language / carbon-lang

Carbon Language's main repository: documents, design, implementation, and related tools. (NOTE: Carbon Language is experimental; see README)
https://github.com/carbon-language/carbon-lang/blob/trunk/README.md
Other
32.31k stars 1.48k forks source link

Fix quirks in debug printing #4088

Open jonmeow opened 3 days ago

jonmeow commented 3 days ago

So, I noticed that ImportIRInst didn't print properly while trying to debug an issue, and that's where this started. Then I was sort of trying to figure out why we have "type_blocks" but "typeBlock", so trying to make that more consistent. "importIRInst0" felt more odd than "import_ir_inst0" which is why I'm suggesting down this particular route, but let me know if you'd prefer the reverse (but then do we also do "typeBlocks", etc, removing the consistency with the member name?)

Also starting to print more detail on import_irs, and added import_ir_insts (adjusting formatting for that too).