diff options
author | 2016-12-12 14:28:21 -0800 | |
---|---|---|
committer | 2016-12-13 11:43:48 -0800 | |
commit | 9186ced255f2e7402646b5b286deebb540640734 (patch) | |
tree | 833c25fd3bbb47749265947705b4fc0f0c1ba796 /compiler/optimizing/nodes.h | |
parent | aa2657d6d9dda2e44c6452e5f5901db78ef9b3cc (diff) |
ART: Clean up utils.h
Remove functionality provided by libbase. Move some single-use
functions to their respective users.
Test: m test-art-host
Change-Id: I75594035fa975200d638cc29bb9f31bc6e6cb29f
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r-- | compiler/optimizing/nodes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 659cddae05..4a8cfcb158 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -125,6 +125,11 @@ enum GraphAnalysisResult { kAnalysisSuccess, }; +template <typename T> +static inline typename std::make_unsigned<T>::type MakeUnsigned(T x) { + return static_cast<typename std::make_unsigned<T>::type>(x); +} + class HInstructionList : public ValueObject { public: HInstructionList() : first_instruction_(nullptr), last_instruction_(nullptr) {} |