commit | 2edc3a6b8df2962f4bcc769fd2606e4f6c36fb06 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Wed Jan 22 16:04:52 2014 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Wed Jan 22 16:04:52 2014 +0000 |
tree | 4ad876aa8eec3475f0eeb6dc88b45cc2c85b6187 | |
parent | 929b0fb893f2c794a450975d802c0b39752effc0 [diff] |
Pass the computed magic to createBinary and createObjectFile if available. identify_magic is not free, so we should avoid calling it twice. The argument also makes it cheap for createBinary to just forward to createObjectFile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199813 91177308-0d34-0410-b5e6-96231b3b80d8