mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
[mips] Correct r206370 to account for non-Linux targets using the small data section.
This should fix the ninja-x64-msvc-RA-centos6 builder. I suspect the check in MipsSubtarget.cpp is incorrect and is really trying to check for a bare-metal target rather and anything other than linux. I'll investigate this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206385 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -131,6 +131,8 @@ MipsSubtarget::MipsSubtarget(const std::string &TT, const std::string &CPU,
|
||||
IsLinux = false;
|
||||
|
||||
// Set UseSmallSection.
|
||||
// TODO: Investigate the IsLinux check. I suspect it's really checking for
|
||||
// bare-metal.
|
||||
UseSmallSection = !IsLinux && (RM == Reloc::Static);
|
||||
// set some subtarget specific features
|
||||
if (inMips16Mode())
|
||||
|
Reference in New Issue
Block a user