[TableGen] NFC improving comments about what the tokenized identifiers will contain.
authorColin LeMahieu <colinl@codeaurora.org>
Mon, 10 Aug 2015 19:58:06 +0000 (19:58 +0000)
committerColin LeMahieu <colinl@codeaurora.org>
Mon, 10 Aug 2015 19:58:06 +0000 (19:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244493 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index d4a0616584bd8ec3ade467d289162879f7c23d31..8403aa56556aeccdcce4ca5f6e38f5bfdf8ba5ad 100644 (file)
@@ -884,12 +884,13 @@ void MatchableInfo::tokenizeAsmString(const AsmMatcherInfo &Info) {
         InTok = false;
       }
 
-      // If this isn't "${", treat like a normal token.
+      // If this isn't "${", start new identifier looking like "$xxx"
       if (i + 1 == String.size() || String[i + 1] != '{') {
         Prev = i;
         break;
       }
 
+      // If this is "${" find the next "}" and make an identifier like "${xxx}"
       StringRef::iterator End = std::find(String.begin() + i, String.end(),'}');
       assert(End != String.end() && "Missing brace in operand reference!");
       size_t EndPos = End - String.begin();