| Index: src/IceTargetLoweringX8632.cpp
|
| diff --git a/src/IceTargetLoweringX8632.cpp b/src/IceTargetLoweringX8632.cpp
|
| index a4ceac061f63e4aa9199799df184c9ea84daf8e9..f06150fc1b5dc9370997fe3ea5ad613e79224a85 100644
|
| --- a/src/IceTargetLoweringX8632.cpp
|
| +++ b/src/IceTargetLoweringX8632.cpp
|
| @@ -120,7 +120,7 @@ void TargetX8632::lowerCall(const InstCall *Instr) {
|
| // Apple.
|
| NeedsStackAlignment = true;
|
|
|
| - typedef std::vector<Operand *> OperandList;
|
| + using OperandList = std::vector<Operand *>;
|
| OperandList XmmArgs;
|
| OperandList StackArgs, StackArgLocations;
|
| uint32_t ParameterAreaSizeBytes = 0;
|
| @@ -653,8 +653,8 @@ namespace {
|
| template <typename T> struct PoolTypeConverter {};
|
|
|
| template <> struct PoolTypeConverter<float> {
|
| - typedef uint32_t PrimitiveIntType;
|
| - typedef ConstantFloat IceType;
|
| + using PrimitiveIntType = uint32_t;
|
| + using IceType = ConstantFloat;
|
| static const Type Ty = IceType_f32;
|
| static const char *TypeName;
|
| static const char *AsmTag;
|
| @@ -665,8 +665,8 @@ const char *PoolTypeConverter<float>::AsmTag = ".long";
|
| const char *PoolTypeConverter<float>::PrintfString = "0x%x";
|
|
|
| template <> struct PoolTypeConverter<double> {
|
| - typedef uint64_t PrimitiveIntType;
|
| - typedef ConstantDouble IceType;
|
| + using PrimitiveIntType = uint64_t;
|
| + using IceType = ConstantDouble;
|
| static const Type Ty = IceType_f64;
|
| static const char *TypeName;
|
| static const char *AsmTag;
|
| @@ -678,8 +678,8 @@ const char *PoolTypeConverter<double>::PrintfString = "0x%llx";
|
|
|
| // Add converter for int type constant pooling
|
| template <> struct PoolTypeConverter<uint32_t> {
|
| - typedef uint32_t PrimitiveIntType;
|
| - typedef ConstantInteger32 IceType;
|
| + using PrimitiveIntType = uint32_t;
|
| + using IceType = ConstantInteger32;
|
| static const Type Ty = IceType_i32;
|
| static const char *TypeName;
|
| static const char *AsmTag;
|
| @@ -691,8 +691,8 @@ const char *PoolTypeConverter<uint32_t>::PrintfString = "0x%x";
|
|
|
| // Add converter for int type constant pooling
|
| template <> struct PoolTypeConverter<uint16_t> {
|
| - typedef uint32_t PrimitiveIntType;
|
| - typedef ConstantInteger32 IceType;
|
| + using PrimitiveIntType = uint32_t;
|
| + using IceType = ConstantInteger32;
|
| static const Type Ty = IceType_i16;
|
| static const char *TypeName;
|
| static const char *AsmTag;
|
| @@ -704,8 +704,8 @@ const char *PoolTypeConverter<uint16_t>::PrintfString = "0x%x";
|
|
|
| // Add converter for int type constant pooling
|
| template <> struct PoolTypeConverter<uint8_t> {
|
| - typedef uint32_t PrimitiveIntType;
|
| - typedef ConstantInteger32 IceType;
|
| + using PrimitiveIntType = uint32_t;
|
| + using IceType = ConstantInteger32;
|
| static const Type Ty = IceType_i8;
|
| static const char *TypeName;
|
| static const char *AsmTag;
|
|
|