TableGen: Use more StringInit instead of StringRef
authorMatthias Braun <matze@braunis.de>
Mon, 5 Dec 2016 06:00:36 +0000 (06:00 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 5 Dec 2016 06:00:36 +0000 (06:00 +0000)
commit6a441839a6a75f3844116a30703cf14027325b0d
treeb8404ef960ef654cfbde3e45f1ebe0f65107043c
parentdb8467ae26835b57cf1f9a494c8d9e91d570e92b
TableGen: Use more StringInit instead of StringRef

This forces the code to call StringInit::get on the string early and
avoids storing duplicates in std::string and sometimes allows pointer
comparisons instead of string comparisons.

llvm-svn: 288642
llvm/include/llvm/TableGen/Record.h
llvm/lib/TableGen/Record.cpp
llvm/lib/TableGen/TGParser.cpp