summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lib/ObjectYAML/MachOYAML.cpp
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
committerpatrick <patrick@openbsd.org>2018-04-06 14:26:03 +0000
commitbdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch)
treec50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/lib/ObjectYAML/MachOYAML.cpp
parentPrint a 'p' flag for file descriptors that were opened after pledge(2). (diff)
downloadwireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz
wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/lib/ObjectYAML/MachOYAML.cpp')
-rw-r--r--gnu/llvm/lib/ObjectYAML/MachOYAML.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/gnu/llvm/lib/ObjectYAML/MachOYAML.cpp b/gnu/llvm/lib/ObjectYAML/MachOYAML.cpp
index ab452a7bf6e..e00a4ea9307 100644
--- a/gnu/llvm/lib/ObjectYAML/MachOYAML.cpp
+++ b/gnu/llvm/lib/ObjectYAML/MachOYAML.cpp
@@ -52,14 +52,12 @@ StringRef ScalarTraits<char_16>::input(StringRef Scalar, void *, char_16 &Val) {
return StringRef();
}
-bool ScalarTraits<char_16>::mustQuote(StringRef S) { return needsQuotes(S); }
+QuotingType ScalarTraits<char_16>::mustQuote(StringRef S) {
+ return needsQuotes(S);
+}
void ScalarTraits<uuid_t>::output(const uuid_t &Val, void *, raw_ostream &Out) {
- for (int Idx = 0; Idx < 16; ++Idx) {
- Out << format("%02" PRIX32, Val[Idx]);
- if (Idx == 3 || Idx == 5 || Idx == 7 || Idx == 9)
- Out << "-";
- }
+ Out.write_uuid(Val);
}
StringRef ScalarTraits<uuid_t>::input(StringRef Scalar, void *, uuid_t &Val) {
@@ -79,7 +77,9 @@ StringRef ScalarTraits<uuid_t>::input(StringRef Scalar, void *, uuid_t &Val) {
return StringRef();
}
-bool ScalarTraits<uuid_t>::mustQuote(StringRef S) { return needsQuotes(S); }
+QuotingType ScalarTraits<uuid_t>::mustQuote(StringRef S) {
+ return needsQuotes(S);
+}
void MappingTraits<MachOYAML::FileHeader>::mapping(
IO &IO, MachOYAML::FileHeader &FileHdr) {