]> granicus.if.org Git - llvm/commit
TableGen: Factor out STRCONCAT constructor, add shortcut.
authorMatthias Braun <matze@braunis.de>
Mon, 5 Dec 2016 05:21:18 +0000 (05:21 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 5 Dec 2016 05:21:18 +0000 (05:21 +0000)
commitc7fb36d42d489206bfd1a2cc7dd55b02e5e3dc9a
treec769d6dc684d1c842786f20d9762e8b757a9eef9
parentccd8fece37ee6793d1577989b945382d3abb81c5
TableGen: Factor out STRCONCAT constructor, add shortcut.

Introduce new constructor for STRCONCAT binop with a shortcut that
immediately concatenates if the two arguments are StringInits.
Makes the QualifyName code more readable and tablegen 2-3% faster.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288639 91177308-0d34-0410-b5e6-96231b3b80d8
lib/TableGen/Record.cpp