[X86] Remove a couple temporary std::string for CPU names that I don't need to exist.
authorCraig Topper <craig.topper@intel.com>
Wed, 22 Jul 2020 22:44:41 +0000 (15:44 -0700)
committerCraig Topper <craig.topper@intel.com>
Wed, 22 Jul 2020 22:55:04 +0000 (15:55 -0700)
commitdeeb2fdbf4d9d805d2709bb7912cb596b4a90750
treedccddbdc75d4bb455c3af67f70ae75c48a4f47b3
parented88cd77d4a0667c78bc8a5bc6c13d6a32576808
[X86] Remove a couple temporary std::string for CPU names that I don't need to exist.

The input to these functions is a StringRef. We then convert it
to a std::string. Then maybe replace with "generic". I think we
can just overwrite the incoming StringRef with "generic" if needed
and then pass it along without creating any std::string.
llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
llvm/lib/Target/X86/X86Subtarget.cpp