diff options
| author | 2014-09-25 17:36:39 -0700 | |
|---|---|---|
| committer | 2014-09-25 17:36:39 -0700 | |
| commit | 02875c56e80500fb0cc4671e33f57968232222ee (patch) | |
| tree | 588c48b5205a6697b810a116dc906eb615436c11 /runtime/instruction_set.h | |
| parent | 6b604a1b0289e5e7211c2e5f8c4f395f51de7c3d (diff) | |
Fix some more pedantic compiler warnings.
Argument name shadows field name.
Lack of case statements for kMips64.
Change-Id: Ib3ca16f79a4d44ae80ef32f22cc79cbe9527f4f1
Diffstat (limited to 'runtime/instruction_set.h')
| -rw-r--r-- | runtime/instruction_set.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/instruction_set.h b/runtime/instruction_set.h index ae8eeac54d..de6d0f47d9 100644 --- a/runtime/instruction_set.h +++ b/runtime/instruction_set.h @@ -56,6 +56,7 @@ static constexpr InstructionSet kRuntimeISA = kNone; static constexpr size_t kArmPointerSize = 4; static constexpr size_t kArm64PointerSize = 8; static constexpr size_t kMipsPointerSize = 4; +static constexpr size_t kMips64PointerSize = 8; static constexpr size_t kX86PointerSize = 4; static constexpr size_t kX86_64PointerSize = 8; @@ -93,6 +94,8 @@ static inline size_t GetInstructionSetPointerSize(InstructionSet isa) { return kX86_64PointerSize; case kMips: return kMipsPointerSize; + case kMips64: + return kMips64PointerSize; case kNone: LOG(FATAL) << "ISA kNone does not have pointer size."; return 0; @@ -114,6 +117,7 @@ static inline bool Is64BitInstructionSet(InstructionSet isa) { case kArm64: case kX86_64: + case kMips64: return true; case kNone: |