[ModuleSummary] use StringRefs to avoid a redundant copy; NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 7 Dec 2018 21:47:32 +0000 (21:47 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Fri, 7 Dec 2018 21:47:32 +0000 (21:47 +0000)
commita0082afcb6ec74f4ec866e94f49b5cd8a4fb9623
tree28a1edba8f641c327c009e504a0e29ce8bef99e9
parent44dfd81d01519d5e4e850b6e0a7037a788fd4b03
[ModuleSummary] use StringRefs to avoid a redundant copy; NFC

`Saver` is a StringSaver, which has a few overloads of `save` that all
ultimately just call `StringRef save(StringRef)`. Just take a StringRef
here instead of building up a std::string to convert it to a StringRef.

llvm-svn: 348650
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp