From 3dcd122151ee58afc5f7f262c890bbfdbf47b08c Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 13 Sep 2017 18:22:59 +0000 Subject: llvm-dwarfdump: support dumping UUIDs of Mach-O binaries. This is a feature supported by Darwin dwarfdump. UUIDs are used to associate executables with their .dSYM bundles. llvm-svn: 313165 --- llvm/lib/ObjectYAML/MachOYAML.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'llvm/lib/ObjectYAML/MachOYAML.cpp') diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp index ab452a7bf6e..85079f2605f 100644 --- a/llvm/lib/ObjectYAML/MachOYAML.cpp +++ b/llvm/lib/ObjectYAML/MachOYAML.cpp @@ -55,11 +55,7 @@ StringRef ScalarTraits::input(StringRef Scalar, void *, char_16 &Val) { bool ScalarTraits::mustQuote(StringRef S) { return needsQuotes(S); } void ScalarTraits::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::input(StringRef Scalar, void *, uuid_t &Val) { -- cgit v1.2.3