mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-08 15:24:21 +00:00
Revert r176166 because it broke one of the lit tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -332,9 +332,9 @@ void X86Subtarget::resetSubtargetFeatures(const MachineFunction *MF) {
|
|||||||
"target-cpu");
|
"target-cpu");
|
||||||
Attribute FSAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex,
|
Attribute FSAttr = FnAttrs.getAttribute(AttributeSet::FunctionIndex,
|
||||||
"target-features");
|
"target-features");
|
||||||
StringRef CPU =
|
std::string CPU =
|
||||||
!CPUAttr.hasAttribute(Attribute::None) ?CPUAttr.getValueAsString() : "";
|
!CPUAttr.hasAttribute(Attribute::None) ?CPUAttr.getValueAsString() : "";
|
||||||
StringRef FS =
|
std::string FS =
|
||||||
!FSAttr.hasAttribute(Attribute::None) ? FSAttr.getValueAsString() : "";
|
!FSAttr.hasAttribute(Attribute::None) ? FSAttr.getValueAsString() : "";
|
||||||
if (!FS.empty()) {
|
if (!FS.empty()) {
|
||||||
initializeEnvironment();
|
initializeEnvironment();
|
||||||
@ -343,7 +343,7 @@ void X86Subtarget::resetSubtargetFeatures(const MachineFunction *MF) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void X86Subtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
|
void X86Subtarget::resetSubtargetFeatures(StringRef CPU, StringRef FS) {
|
||||||
StringRef CPUName = CPU;
|
std::string CPUName = CPU;
|
||||||
if (!FS.empty() || !CPU.empty()) {
|
if (!FS.empty() || !CPU.empty()) {
|
||||||
if (CPUName.empty()) {
|
if (CPUName.empty()) {
|
||||||
#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
|
#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
|
||||||
|
Reference in New Issue
Block a user