[mips] [IAS] Refactor the function which checks for the availability of AT. NFC.
authorToma Tabacu <toma.tabacu@imgtec.com>
Wed, 15 Apr 2015 10:48:56 +0000 (10:48 +0000)
committerToma Tabacu <toma.tabacu@imgtec.com>
Wed, 15 Apr 2015 10:48:56 +0000 (10:48 +0000)
commite3d79bbe9fd22bc10563add304470138ff749c4f
tree6a62fe80de43ddde60e888074617da0e72fbaabf
parent4c0055402f2c82d54555c98d24e2ea1a8abbe1f5
[mips] [IAS] Refactor the function which checks for the availability of AT. NFC.

Summary:
Refactor MipsAsmParser::getATReg to return an internal register number instead of a register index.
Also change all the int's to unsigned, seeing as the current AT register index is stored as an unsigned in MipsAssemblerOptions.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8478

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234996 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/AsmParser/MipsAsmParser.cpp