Changeset View
Changeset View
Standalone View
Standalone View
lib/Target/Mips/MipsAsmPrinter.cpp
Show First 20 Lines • Show All 647 Lines • ▼ Show 20 Lines | static void emitELFHeaderFlagsCG(MipsTargetStreamer &TargetStreamer, | ||||
else | else | ||||
EFlags |= ELF::EF_MIPS_NOREORDER; | EFlags |= ELF::EF_MIPS_NOREORDER; | ||||
// Architecture | // Architecture | ||||
if (Subtarget.hasMips64r2()) | if (Subtarget.hasMips64r2()) | ||||
EFlags |= ELF::EF_MIPS_ARCH_64R2; | EFlags |= ELF::EF_MIPS_ARCH_64R2; | ||||
else if (Subtarget.hasMips64()) | else if (Subtarget.hasMips64()) | ||||
EFlags |= ELF::EF_MIPS_ARCH_64; | EFlags |= ELF::EF_MIPS_ARCH_64; | ||||
else if (Subtarget.isGP64bit()) | |||||
EFlags |= ELF::EF_MIPS_ARCH_4; | |||||
dsanders: The predicate here should be isMips4() which should test for FeatureMips4 | |||||
else if (Subtarget.hasMips32r2()) | else if (Subtarget.hasMips32r2()) | ||||
EFlags |= ELF::EF_MIPS_ARCH_32R2; | EFlags |= ELF::EF_MIPS_ARCH_32R2; | ||||
else | else | ||||
EFlags |= ELF::EF_MIPS_ARCH_32; | EFlags |= ELF::EF_MIPS_ARCH_32; | ||||
if (Subtarget.inMicroMipsMode()) | if (Subtarget.inMicroMipsMode()) | ||||
EFlags |= ELF::EF_MIPS_MICROMIPS; | EFlags |= ELF::EF_MIPS_MICROMIPS; | ||||
Show All 35 Lines |
The predicate here should be isMips4() which should test for FeatureMips4