summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-07-14 12:45:13 +0100
committer Vladimir Marko <vmarko@google.com> 2021-07-14 15:18:36 +0000
commit4f990714b13e0b4446305a5411648a1a9ae42a7a (patch)
tree4568386e3e6f3c98c819851f6573e2c7cbc184fb /compiler/optimizing/nodes.h
parent7744b69abf073101b09b9043f0f0eb109768fcfe (diff)
Modernize typedefs with `using`.
Replace many occurences of `typedef` with `using`. For now, do not update typedefs for function types and aligned types and do not touch some parts such as jvmti or dmtracedump. Test: m Change-Id: Ie97ecbc5abf7e7109ef4b01f208752e2dc26c36d
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 939c49f9a6..69ca520f5a 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -194,7 +194,7 @@ class HInstructionList : public ValueObject {
class ReferenceTypeInfo : ValueObject {
public:
- typedef Handle<mirror::Class> TypeHandle;
+ using TypeHandle = Handle<mirror::Class>;
static ReferenceTypeInfo Create(TypeHandle type_handle, bool is_exact);
@@ -5705,7 +5705,7 @@ class HUShr final : public HBinaryOperation {
template <typename T>
static T Compute(T value, int32_t distance, int32_t max_shift_distance) {
- typedef typename std::make_unsigned<T>::type V;
+ using V = std::make_unsigned_t<T>;
V ux = static_cast<V>(value);
return static_cast<T>(ux >> (distance & max_shift_distance));
}
@@ -5862,7 +5862,7 @@ class HRor final : public HBinaryOperation {
template <typename T>
static T Compute(T value, int32_t distance, int32_t max_shift_value) {
- typedef typename std::make_unsigned<T>::type V;
+ using V = std::make_unsigned_t<T>;
V ux = static_cast<V>(value);
if ((distance & max_shift_value) == 0) {
return static_cast<T>(ux);