[X86][AutoUpgrade] Simplify string management in UpgradeDataLayoutString a bit. NFCI
authorCraig Topper <craig.topper@intel.com>
Thu, 20 Aug 2020 00:44:21 +0000 (17:44 -0700)
committerCraig Topper <craig.topper@intel.com>
Thu, 20 Aug 2020 00:48:11 +0000 (17:48 -0700)
commit8750d54cea31751fbf1dbcb03b7569493769fdef
tree865501dcf057cc532bdffc2fe30113c612540806
parent9c7b0c4aa5ebe5ec9fef9ca18bef0c3a916b0fca
[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.
llvm/lib/IR/AutoUpgrade.cpp