summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2016-12-12 14:28:21 -0800
committer Andreas Gampe <agampe@google.com> 2016-12-13 11:43:48 -0800
commit9186ced255f2e7402646b5b286deebb540640734 (patch)
tree833c25fd3bbb47749265947705b4fc0f0c1ba796 /compiler/optimizing/nodes.h
parentaa2657d6d9dda2e44c6452e5f5901db78ef9b3cc (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.h5
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) {}