[PATCH] D66149: [BinaryFormat] Teach identify_magic about Tapi files.

Juergen Ributzka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 17:18:14 PDT 2019


ributzka added inline comments.


================
Comment at: llvm/lib/BinaryFormat/Magic.cpp:214
+  case 0x2d: // YAML '-'
+    if (startswith(Magic, "---\narchs:") || startswith(Magic, "--- !tapi"))
+      return file_magic::tapi_file;
----------------
steven_wu wrote:
> maybe reverse the order of the condition?
+1


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66149/new/

https://reviews.llvm.org/D66149





More information about the llvm-commits mailing list