Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1981)

Unified Diff: src/IceInstARM32.h

Issue 1676123002: Subzero: Use a proper RegNumT type instead of int32_t/SizeT. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Make it possible to do "auto NewReg = RegNumT::NoRegister;" Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInstARM32.h
diff --git a/src/IceInstARM32.h b/src/IceInstARM32.h
index 4d8f02b5b712e21d1f6ddf0a88f6cce172cfe286..40518c141c17394e52fcac80912539fcde2488c2 100644
--- a/src/IceInstARM32.h
+++ b/src/IceInstARM32.h
@@ -354,14 +354,14 @@ public:
static bool classof(const Operand *Operand) {
return Operand->getKind() == StackVariableKind;
}
- void setBaseRegNum(int32_t RegNum) { BaseRegNum = RegNum; }
- int32_t getBaseRegNum() const override { return BaseRegNum; }
+ void setBaseRegNum(RegNumT RegNum) { BaseRegNum = RegNum; }
+ RegNumT getBaseRegNum() const override { return BaseRegNum; }
// Inherit dump() and emit() from Variable.
private:
StackVariable(Type Ty, SizeT Index)
: Variable(StackVariableKind, Ty, Index) {}
- int32_t BaseRegNum = Variable::NoRegister;
+ RegNumT BaseRegNum = RegNumT::NoRegister;
};
/// Base class for ARM instructions. While most ARM instructions can be
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceInstARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698