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 | 3dcd122151ee58afc5f7f262c890bbfdbf47b08c (patch) | |
tree | e9bed3a2f0d8cf0b688c8f6a553cab03601181b5 /llvm/lib/ObjectYAML/MachOYAML.cpp | |
parent | fb1baef1c0f28a2ad9071843e2b620e2ee30aaf6 (diff) | |
download | bcm5719-llvm-3dcd122151ee58afc5f7f262c890bbfdbf47b08c.tar.gz bcm5719-llvm-3dcd122151ee58afc5f7f262c890bbfdbf47b08c.zip |
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
Diffstat (limited to 'llvm/lib/ObjectYAML/MachOYAML.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/MachOYAML.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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<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) { |