mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
add some helpful comments to the emitter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97219 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6f0602564
commit
5a56e5c82a
@ -204,6 +204,12 @@ EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx,
|
||||
assert(ChildSize != 0 && "Should not have a zero-sized child!");
|
||||
|
||||
CurrentIdx += EmitVBRValue(ChildSize, OS);
|
||||
OS << "/*->" << CurrentIdx+ChildSize << "*/";
|
||||
|
||||
if (i == 0)
|
||||
OS.PadToColumn(CommentIndent) << "// " << SM->getNumChildren()
|
||||
<< " children in Scope";
|
||||
|
||||
OS << '\n' << TmpBuf.str();
|
||||
CurrentIdx += ChildSize;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user