summaryrefslogtreecommitdiffstats
path: root/clang/utils/TableGen/ClangAttrEmitter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-31 19:01:11 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-31 19:01:11 +0000
commit2b8419a22d0fdb9b204ef0a0262a6ca22137b9a5 (patch)
treed7801abd33c2973d4a9f375e9519e55b3745d375 /clang/utils/TableGen/ClangAttrEmitter.cpp
parentfa5dc09292ad2310a378a82a05a6449f2bd3a113 (diff)
downloadbcm5719-llvm-2b8419a22d0fdb9b204ef0a0262a6ca22137b9a5.tar.gz
bcm5719-llvm-2b8419a22d0fdb9b204ef0a0262a6ca22137b9a5.zip
[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
Diffstat (limited to 'clang/utils/TableGen/ClangAttrEmitter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud