diff options
Diffstat (limited to 'lib/CodeGen/RegAlloc/PhyRegAlloc.h')
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 88bd5e21a8..a767dbdcc5 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -99,15 +99,11 @@ public: const char *getPassName () const { return "Traditional graph-coloring reg. allocator"; } - - // access to register classes by class ID - // - const RegClass* getRegClassByID(unsigned id) const { - return RegClassList[id]; - } - RegClass* getRegClassByID(unsigned id) { + + inline const RegClass* getRegClassByID(unsigned id) const { return RegClassList[id]; } + inline RegClass *getRegClassByID(unsigned id) { return RegClassList[id]; } private: void addInterference(const Value *Def, const ValueSet *LVSet, @@ -147,7 +143,6 @@ private: void printLabel(const Value *Val); void printMachineCode(); - int getUsableUniRegAtMI(int RegType, const ValueSet *LVSetBef, MachineInstr *MI, std::vector<MachineInstr*>& MIBef, |