Index: src/IceTargetLoweringX86BaseImpl.h |
diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h |
index b6b54e397d6fd1be0f638a84692485ca8810de91..dc58da741dfd79e186448112ba166a0d6b5195b3 100644 |
--- a/src/IceTargetLoweringX86BaseImpl.h |
+++ b/src/IceTargetLoweringX86BaseImpl.h |
@@ -281,8 +281,9 @@ TargetX86Base<Machine>::TargetX86Base(Cfg *Func) |
TargetInstructionSet::X86InstructionSet_Begin) + |
Traits::InstructionSet::Begin); |
} |
- // TODO: Don't initialize IntegerRegisters and friends every time. Instead, |
- // initialize in some sort of static initializer for the class. |
+} |
+ |
+template <class Machine> void TargetX86Base<Machine>::staticInit() { |
Traits::initRegisterSet(&TypeToRegisterSet, &RegisterAliases, &ScratchRegs); |
} |