diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-17 01:03:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 01:03:09 +0000 |
commit | c96087b3433582f1c2bdb4f0ad3dad7f0b350339 (patch) | |
tree | 504b2a4013314d19cc912027c296f68a17d53763 /utils/TableGen/DAGISelMatcherEmitter.cpp | |
parent | 9ee7123ab462d97a2b242280e9bf0b47883531cb (diff) | |
download | external_llvm-c96087b3433582f1c2bdb4f0ad3dad7f0b350339.zip external_llvm-c96087b3433582f1c2bdb4f0ad3dad7f0b350339.tar.gz external_llvm-c96087b3433582f1c2bdb4f0ad3dad7f0b350339.tar.bz2 |
improve comments on OPC_Record to say what we're recording a node.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelMatcherEmitter.cpp')
-rw-r--r-- | utils/TableGen/DAGISelMatcherEmitter.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelMatcherEmitter.cpp b/utils/TableGen/DAGISelMatcherEmitter.cpp index af75d7d..9b37254 100644 --- a/utils/TableGen/DAGISelMatcherEmitter.cpp +++ b/utils/TableGen/DAGISelMatcherEmitter.cpp @@ -126,7 +126,9 @@ EmitMatcher(const MatcherNode *N, unsigned Indent) { OS.PadToColumn(Indent*2) << "OPC_Emit, /*XXX*/\n\n"; return 1; case MatcherNode::Record: - OS << "OPC_Record,\n"; + OS << "OPC_Record,"; + OS.PadToColumn(CommentIndent) << "// " + << cast<RecordMatcherNode>(N)->getWhatFor() << '\n'; return 1; case MatcherNode::MoveChild: OS << "OPC_MoveChild, " |