| Index: src/IceTargetLoweringARM32.cpp
|
| diff --git a/src/IceTargetLoweringARM32.cpp b/src/IceTargetLoweringARM32.cpp
|
| index a4aa51794f03882f5e96d4d4c646693224cb4f79..2d3c5c1f50285a3de17f5193f78beff965efb585 100644
|
| --- a/src/IceTargetLoweringARM32.cpp
|
| +++ b/src/IceTargetLoweringARM32.cpp
|
| @@ -135,8 +135,21 @@ uint32_t applyStackAlignment(uint32_t Value) {
|
| } // end of anonymous namespace
|
|
|
| TargetARM32::TargetARM32(Cfg *Func)
|
| - : TargetLowering(Func), UsesFramePointer(false), NeedsStackAlignment(false),
|
| - MaybeLeafFunc(true), SpillAreaSizeBytes(0) {
|
| + : TargetLowering(Func), InstructionSet(ARM32InstructionSet::Begin),
|
| + UsesFramePointer(false), NeedsStackAlignment(false), MaybeLeafFunc(true),
|
| + SpillAreaSizeBytes(0) {
|
| + static_assert(
|
| + (ARM32InstructionSet::End - ARM32InstructionSet::Begin) ==
|
| + (TargetInstructionSet::ARM32InstructionSet_End -
|
| + TargetInstructionSet::ARM32InstructionSet_Begin),
|
| + "ARM32InstructionSet range different from TargetInstructionSet");
|
| + if (Func->getContext()->getFlags().getTargetInstructionSet() !=
|
| + TargetInstructionSet::BaseInstructionSet) {
|
| + InstructionSet = static_cast<ARM32InstructionSet>(
|
| + (Func->getContext()->getFlags().getTargetInstructionSet() -
|
| + TargetInstructionSet::ARM32InstructionSet_Begin) +
|
| + ARM32InstructionSet::Begin);
|
| + }
|
| // TODO: Don't initialize IntegerRegisters and friends every time.
|
| // Instead, initialize in some sort of static initializer for the
|
| // class.
|
|
|