]> granicus.if.org Git - clang/commit
Fix usage in TableGen of getValueAsString
authorErich Keane <erich.keane@intel.com>
Mon, 16 Oct 2017 23:25:24 +0000 (23:25 +0000)
committerErich Keane <erich.keane@intel.com>
Mon, 16 Oct 2017 23:25:24 +0000 (23:25 +0000)
commit551dc900ed276189569f3d814a3a5c540bab2fc6
tree77d1367cd8be039374a2a10d72e4990d4c496741
parentf98dea105e50c0e5d0ca5c6c49fb5d39ed1e67b4
Fix usage in TableGen of getValueAsString

Record::getValueAsString returns a stringref to an interned
string (apparently had been changed since most of tablegen was
written). In this patch, I audited the usage of getValueAsString
to find places where we can trivially stop storing 'std::string' and instead
keep the stringref.

There was one instance where an unnecessary 'stringstream' was being used,
so that has been removed as well to unblock the stringref replacing string fix.

Differential Revision: https://reviews.llvm.org/D38979

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315956 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/ClangAttrEmitter.cpp