Basic: fix profiling with GNU EABI
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 12 Apr 2016 03:05:03 +0000 (03:05 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 12 Apr 2016 03:05:03 +0000 (03:05 +0000)
commitc066d9cf55686a1fff5b7fe1bd1b77bdac6dca54
tree652c230870a3a7ad40b03c18f09b258efa67bc51
parent6efde2fb451bf6c5538ca38cfb44cf84a7bb0e72
Basic: fix profiling with GNU EABI

The GNU profiling support indicates that the interface is `_mcount` rather than
`mcount`.  Conditionalise the behaviour according to the `-meabi gnu` flag.

Resolves PR27311

llvm-svn: 266039
clang/lib/Basic/Targets.cpp
clang/test/Frontend/gnu-mcount.c