1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
Craig Topper 1622520c04 [TableGen] Make Record::getValueAsString and getValueAsListOfStrings return StringRefs instead of std::string
Internally both these methods just return the result of getValue on either a StringInit or a CodeInit object. In both cases this returns a StringRef pointing to a string allocated in the BumpPtrAllocator so its not going anywhere. So we can just pass that StringRef along.

This is a fairly naive patch that targets just the build failures caused by this change. There's additional work that can be done to avoid creating std::string at call sites that still think getValueAsString returns a std::string. I'll try to clean those up in future patches.

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

llvm-svn: 304325
2017-05-31 19:01:11 +00:00
..
2016-01-26 21:29:08 +00:00
2015-09-10 13:44:28 +00:00
2017-03-14 10:51:14 +00:00
2016-01-26 21:29:08 +00:00
2016-12-01 19:38:48 +00:00
2016-01-26 21:29:08 +00:00
2017-02-10 23:57:11 +00:00
2016-05-05 14:35:40 +00:00