commit | 086a6fac1d672505730e980d0cef4c2a56a89176 | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Fri Mar 25 21:59:14 2016 +0000 |
committer | Lang Hames <lhames@gmail.com> | Fri Mar 25 21:59:14 2016 +0000 |
tree | 7137d8445145d6b4cede152f2f28154762788d29 | |
parent | d65658e8aabb10455f7249e0fd736f16e22b2e97 [diff] |
[Object] Make MachOObjectFile's constructor private, provide a static create method instead. This is not quite a named constructor: Construction may fail, and MachOObjectFiles are usually passed by unique_ptr anyway, so create returns an Expected<std::unique_ptr<MachOObjectFile>>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264469 91177308-0d34-0410-b5e6-96231b3b80d8