[PATCH] D69126: [Object] Fix the return type of getOffset/getSize
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 11:49:32 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG68db51d5c677: [Object] Fix the return type of getOffset/getSize (authored by alexshap).
Changed prior to commit:
https://reviews.llvm.org/D69126?vs=225481&id=225488#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69126/new/
https://reviews.llvm.org/D69126
Files:
llvm/include/llvm/Object/MachOUniversal.h
Index: llvm/include/llvm/Object/MachOUniversal.h
===================================================================
--- llvm/include/llvm/Object/MachOUniversal.h
+++ llvm/include/llvm/Object/MachOUniversal.h
@@ -66,13 +66,13 @@
else // Parent->getMagic() == MachO::FAT_MAGIC_64
return Header64.cpusubtype;
}
- uint32_t getOffset() const {
+ uint64_t getOffset() const {
if (Parent->getMagic() == MachO::FAT_MAGIC)
return Header.offset;
else // Parent->getMagic() == MachO::FAT_MAGIC_64
return Header64.offset;
}
- uint32_t getSize() const {
+ uint64_t getSize() const {
if (Parent->getMagic() == MachO::FAT_MAGIC)
return Header.size;
else // Parent->getMagic() == MachO::FAT_MAGIC_64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69126.225488.patch
Type: text/x-patch
Size: 778 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191017/3fcc4f4e/attachment.bin>
More information about the llvm-commits
mailing list