[llvm-exegesis] Define MAP_FIXED_NOREPLACE if not available
authorAiden Grossman <agrossman154@yahoo.com>
Mon, 26 Jun 2023 20:41:54 +0000 (20:41 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Mon, 26 Jun 2023 20:43:26 +0000 (20:43 +0000)
commit4cdfdb5e7cf83c327fa42f8706164a1f8a60ff35
tree868987d65322050dc74d0e71376f503658bfb213
parent17202379ca594111602296d2308587009c5b83c8
[llvm-exegesis] Define MAP_FIXED_NOREPLACE if not available

Some builders are currently failing as they don't have
MAP_FIXED_NOREPLACE available. This patch checks if MAP_FIXED_NOREPLACE
is available and if it isn't, it is simply defined as MAP_FIXED.
llvm/tools/llvm-exegesis/lib/X86/Target.cpp
llvm/unittests/tools/llvm-exegesis/X86/TargetTest.cpp