diff options
author | Adrian Prantl <aprantl@apple.com> | 2017-09-13 18:22:59 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2017-09-13 18:22:59 +0000 |
commit | 7ff141c2023c29c40f9e328b122632fec41a6db9 (patch) | |
tree | 5597cbc25fb9b3d4312aba2de383fe3c42492b0d /lib/ObjectYAML | |
parent | 51aca1f1859560c60ddc1e78217aa5f408af50fe (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ObjectYAML')
-rw-r--r-- | lib/ObjectYAML/MachOYAML.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/ObjectYAML/MachOYAML.cpp b/lib/ObjectYAML/MachOYAML.cpp index ab452a7bf6e..85079f2605f 100644 --- a/lib/ObjectYAML/MachOYAML.cpp +++ b/lib/ObjectYAML/MachOYAML.cpp @@ -55,11 +55,7 @@ StringRef ScalarTraits<char_16>::input(StringRef Scalar, void *, char_16 &Val) { bool 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) { |