%ra, %sp, %fp are now valid register identifiers.

This commit is contained in:
cdkersey
2015-07-06 22:20:05 -06:00
parent 60f2e494e3
commit 3242ff3354
4 changed files with 23 additions and 4 deletions

View File

@@ -169,10 +169,11 @@ namespace Harp {
class AsmReader : public ObjReader {
public:
AsmReader(ArchDef arch) : wordSize(arch.getWordSize()) {}
AsmReader(ArchDef arch) :
wordSize(arch.getWordSize()), nRegs(arch.getNRegs()) {}
virtual Obj *read(std::istream &input);
private:
Size wordSize;
Size wordSize, nRegs;
};
class HOFReader : public ObjReader {