summaryrefslogtreecommitdiff
path: root/compiler-rt/lib/orc/debug.cpp
AgeCommit message (Collapse)Author
2024-09-09[ORC-RT] Remove double underscore from the orc_rt namespace.Lang Hames
We should use `orc_rt` as the public C++ API namespace for the ORC runtime and control symbol visibility to hide implementation details, rather than rely on the '__' prefix.
2022-01-08[ORC-RT] Add missing headers from 1d82e19f37d.Lang Hames
This should fix the build failure at https://lab.llvm.org/buildbot/#/builders/165/builds/12997
2022-01-08[ORC-RT] Add debug logging macros.Lang Hames
Inspired by LLVM_DEBUG, but using environment variables rather than command line options. Code can use ORC_RT_DEBUG(...) (if ORC_RT_DEBUG_TYPE is set), or ORC_RT_DEBUG_WITH_TYPE(<type>, ...) (if ORC_RT_DEBUG_TYPE is not set. E.g. in headers). Debug logging is enabled in the executor by setting the ORC_RT_DEBUG environment variable. Debug logging can be restricted by type by setting the ORC_RT_DEBUG_TYPES environment variable to a comma separated list of types, e.g. ORC_RT_DEBUG_TYPES=macho_platform,sps. Differential Revision: https://reviews.llvm.org/D116139