ARM: use a more precise check for MachO
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 18 Sep 2014 03:49:55 +0000 (03:49 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 18 Sep 2014 03:49:55 +0000 (03:49 +0000)
commit5bf65590d0e8297353398ab01f219fb2d7b7b36e
tree7d5019ddab112fde6443e793883e848dc7cb7244
parent710fc316fbbf0c58cb550064070a602e218f0d9a
ARM: use a more precise check for MachO

Rather than relying on support for a specific directive to determine if we are
targeting MachO, explicitly check the output format.

As an additional bonus, cleanup the caret diagnostic for the non-MachO case and
avoid the spurious error caused by not discarding the statement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218012 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/directive-thumb_func.s [new file with mode: 0644]