Path: blob/main/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/Utility/Utility.h
213845 views
//===-- Utility.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//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_UTILITY_UTILITY_H9#define LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_UTILITY_UTILITY_H1011#include "lldb/lldb-forward.h"1213namespace lldb_private {1415class Target;1617/// On Darwin, if LLDB loaded libclang_rt, it's coming from a locally built18/// compiler-rt, and we should prefer it in favour of the system sanitizers19/// when running InstrumentationRuntime utility expressions that use symbols20/// from the sanitizer libraries. This helper searches the target for such a21/// dylib. Returns nullptr if no such dylib was found.22lldb::ModuleSP GetPreferredAsanModule(const Target &target);2324} // namespace lldb_private2526#endif // LLDB_SOURCE_PLUGINS_INSTRUMENTATIONRUNTIME_UTILITY_UTILITY_H272829