diff options
author | Colin LeMahieu <colinl@codeaurora.org> | 2015-08-10 19:58:06 +0000 |
---|---|---|
committer | Colin LeMahieu <colinl@codeaurora.org> | 2015-08-10 19:58:06 +0000 |
commit | 3d9057470f934ffa14b28dc5625ce7eeee99d34f (patch) | |
tree | e65fb958222b257d66a3d8a7ca4fd755ff20ae82 /llvm/utils/TableGen | |
parent | 8a0925cb627ce1a7a321acae96e95143046e6c63 (diff) | |
download | bcm5719-llvm-3d9057470f934ffa14b28dc5625ce7eeee99d34f.tar.gz bcm5719-llvm-3d9057470f934ffa14b28dc5625ce7eeee99d34f.zip |
[TableGen] NFC improving comments about what the tokenized identifiers will contain.
llvm-svn: 244493
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r-- | llvm/utils/TableGen/AsmMatcherEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index d4a0616584b..8403aa56556 100644 --- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp +++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp @@ -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(); |