mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-05 02:16:46 +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