[all-commits] [llvm/llvm-project] 8750d5: [X86][AutoUpgrade] Simplify string management in U...
topperc via All-commits
all-commits at lists.llvm.org
Wed Aug 19 17:48:54 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8750d54cea31751fbf1dbcb03b7569493769fdef
https://github.com/llvm/llvm-project/commit/8750d54cea31751fbf1dbcb03b7569493769fdef
Author: Craig Topper <craig.topper at intel.com>
Date: 2020-08-19 (Wed, 19 Aug 2020)
Changed paths:
M llvm/lib/IR/AutoUpgrade.cpp
Log Message:
-----------
[X86][AutoUpgrade] Simplify string management in UpgradeDataLayoutString a bit. NFCI
We don't need a std::string for a literal string, we can use a
StringRef.
The addition of StringRefs produces a Twine that we can just call
str() without converting to a SmallString ourselves. Twine will
do that internally.
More information about the All-commits
mailing list