summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Analysis/LoopInfo.cpp
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2015-05-25 19:18:16 +0000
committeradrian <adrian@FreeBSD.org>2015-05-25 19:18:16 +0000
commitdaa4dc6942d7e419a8c535035abeee867ccd6487 (patch)
tree54f39f6faf7793d8e0ca3482eb053c1b73bd2cfe /contrib/llvm/lib/Analysis/LoopInfo.cpp
parent8e50f6e398c45b4abb0daff911d2655e7547e491 (diff)
downloadFreeBSD-src-daa4dc6942d7e419a8c535035abeee867ccd6487.zip
FreeBSD-src-daa4dc6942d7e419a8c535035abeee867ccd6487.tar.gz
Convert malloc/free back to #define's, as part of OS portability work.
DragonflyBSD uses the FreeBSD wireless stack and drivers. Their malloc() API is named differently, so they don't have userland/kernel symbol clashes like we do (think libuinet.) So, to make it easier for them and to port to other BSDs/other operating systems, start hiding the malloc specific bits behind defines in ieee80211_freebsd.h. DragonflyBSD can now put these portability defines in their local ieee80211_dragonflybsd.h. This should be a great big no-op for everyone running wifi. TODO: * kill M_WAITOK - some platforms just don't want you to use it * .. and/or handle it returning NULL rather than waiting forever. * MALLOC_DEFINE() ? * Migrate the well-known malloc names (eg M_TEMP) to net80211 namespace defines.
Diffstat (limited to 'contrib/llvm/lib/Analysis/LoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud