[C++] Use 'nullptr'. Tools edition.
llvm-svn: 207176
diff --git a/llvm/tools/llvm-readobj/ARMAttributeParser.cpp b/llvm/tools/llvm-readobj/ARMAttributeParser.cpp
index cd0bcd4..d35cd14 100644
--- a/llvm/tools/llvm-readobj/ARMAttributeParser.cpp
+++ b/llvm/tools/llvm-readobj/ARMAttributeParser.cpp
@@ -126,7 +126,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -153,7 +153,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -163,7 +163,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -176,7 +176,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -186,7 +186,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -198,7 +198,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -211,7 +211,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -221,7 +221,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -233,7 +233,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -243,7 +243,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -253,7 +253,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -265,7 +265,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -275,7 +275,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -285,7 +285,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -295,7 +295,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -306,7 +306,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -318,7 +318,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -371,7 +371,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -383,7 +383,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -395,7 +395,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -405,7 +405,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -419,7 +419,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -433,7 +433,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -465,7 +465,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -475,7 +475,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -485,7 +485,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -495,7 +495,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -507,7 +507,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -517,7 +517,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}
@@ -530,7 +530,7 @@
uint64_t Value = ParseInteger(Data, Offset);
StringRef ValueDesc =
- (Value < array_lengthof(Strings)) ? Strings[Value] : NULL;
+ (Value < array_lengthof(Strings)) ? Strings[Value] : nullptr;
PrintAttribute(Tag, Value, ValueDesc);
}