Add MachOObjectFile::getUuid()
authorAlexander Potapenko <glider@google.com>
Wed, 15 Oct 2014 23:35:45 +0000 (23:35 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 15 Oct 2014 23:35:45 +0000 (23:35 +0000)
commit6909b5b567a4fa68c5be1ee6af2609b929eb8512
treefd03e08b530107e0bab5c8280f5634da8946c3c2
parent900dbdc4d9d88d617d7925c2a45b067b87d48f18
Add MachOObjectFile::getUuid()

This CL introduces MachOObjectFile::getUuid(). This function returns an ArrayRef to the object file's UUID, or an empty ArrayRef if the object file doesn't contain an LC_UUID load command.
The new function is gonna be used by llvm-symbolizer.

llvm-svn: 219866
llvm/include/llvm/Object/MachO.h
llvm/lib/Object/MachOObjectFile.cpp