X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FSupport%2FMachO.h;h=ceb168582be381cf2cdfd37f25108927c28cf81a;hp=4a1c059e28dc94038a67ed3fbaf953f420fc3d1e;hb=728b8cfc76e6cdce8a113bfb86effb162a4b014f;hpb=604a34e086da0f08c46e56fb64a48bf4ab77b316 diff --git a/include/llvm/Support/MachO.h b/include/llvm/Support/MachO.h index 4a1c059e28d..ceb168582be 100644 --- a/include/llvm/Support/MachO.h +++ b/include/llvm/Support/MachO.h @@ -1117,7 +1117,19 @@ namespace llvm { sys::swapByteOrder(s.cmd); sys::swapByteOrder(s.cmdsize); sys::swapByteOrder(s.sub_umbrella); - }; + } + + inline void swapStruct(sub_library_command &s) { + sys::swapByteOrder(s.cmd); + sys::swapByteOrder(s.cmdsize); + sys::swapByteOrder(s.sub_library); + } + + inline void swapStruct(sub_client_command &s) { + sys::swapByteOrder(s.cmd); + sys::swapByteOrder(s.cmdsize); + sys::swapByteOrder(s.client); + } inline void swapStruct(dylinker_command &d) { sys::swapByteOrder(d.cmd);