Path: blob/main/contrib/llvm-project/compiler-rt/lib/xray/xray_flags.h
35263 views
//===-- xray_flags.h -------------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// This file is a part of XRay, a dynamic runtime instrumentation system.9//10// XRay runtime flags.11//===----------------------------------------------------------------------===//1213#ifndef XRAY_FLAGS_H14#define XRAY_FLAGS_H1516#include "sanitizer_common/sanitizer_flag_parser.h"17#include "sanitizer_common/sanitizer_internal_defs.h"1819namespace __xray {2021struct Flags {22#define XRAY_FLAG(Type, Name, DefaultValue, Description) Type Name;23#include "xray_flags.inc"24#undef XRAY_FLAG2526void setDefaults();27};2829extern Flags xray_flags_dont_use_directly;30extern void registerXRayFlags(FlagParser *P, Flags *F);31const char *useCompilerDefinedFlags();32inline Flags *flags() { return &xray_flags_dont_use_directly; }3334void initializeFlags();3536} // namespace __xray3738#endif // XRAY_FLAGS_H394041