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)
commit3bff414cdeda54ba9a08921009b390b8ed8f306d
treed31ebc8ac8b4b8e9c3d3664da4e918b59908822c
parenta590c745496bdc8ff048945bb8949206b4a910f6
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

llvm-svn: 315956
clang/utils/TableGen/ClangAttrEmitter.cpp