OSDN Git Service

[libFuzzer] Check for target(popcnt) capability before usage
authorKuba Mracek <mracek@apple.com>
Fri, 21 Apr 2017 16:57:37 +0000 (16:57 +0000)
committerKuba Mracek <mracek@apple.com>
Fri, 21 Apr 2017 16:57:37 +0000 (16:57 +0000)
commit50c9a25c600f3d6d2f81b7a973fe106994d88745
treeb5d88da22daf7dd82fa32176835ef301aa682537
parent2602091f822fc2b3d64b1a0c15e1f661e47c7143
[libFuzzer] Check for target(popcnt) capability before usage

Older compilers (e.g. LLVM 3.4) do not support the attribute target("popcnt").
In order to support those, this diff check the attribute support using the preprocessor.

Patch by George Karpenkov.

Differential Revision: https://reviews.llvm.org/D32311

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Fuzzer/FuzzerDefs.h