mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
std::string to StringRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c1a2caf870
commit
e7c52282dd
@ -332,9 +332,9 @@ void X86Subtarget::resetSubtargetFeatures(const MachineFunction *MF) {
|
||||
"target-cpu");
|
||||
Attribute FSAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex,
|
||||
"target-features");
|
||||
std::string CPU =
|
||||
!CPUAttr.hasAttribute(Attribute::None) ?CPUAttr.getValueAsString() : "";
|
||||
std::string FS =
|
||||
StringRef CPU =
|
||||
!CPUAttr.hasAttribute(Attribute::None) ? CPUAttr.getValueAsString() : "";
|
||||
StringRef FS =
|
||||
!FSAttr.hasAttribute(Attribute::None) ? FSAttr.getValueAsString() : "";
|
||||
if (!FS.empty()) {
|
||||
initializeEnvironment();
|
||||
@ -343,7 +343,7 @@ void X86Subtarget::resetSubtargetFeatures(const MachineFunction *MF) {
|
||||
}
|
||||
|
||||
void X86Subtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
|
||||
std::string CPUName = CPU;
|
||||
StringRef CPUName = CPU;
|
||||
if (!FS.empty() || !CPU.empty()) {
|
||||
if (CPUName.empty()) {
|
||||
#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
|
||||
|
Loading…
Reference in New Issue
Block a user