[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / compiler-rt / lib / sanitizer_common / sanitizer_dl.h
blobecde0664eb04950895f817fade08e1e192fe6a98
1 //===-- sanitizer_dl.h ----------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file has helper functions that depend on libc's dynamic loading
10 // introspection.
12 //===----------------------------------------------------------------------===//
14 #ifndef SANITIZER_DL_H
15 #define SANITIZER_DL_H
17 namespace __sanitizer {
19 // Returns the path to the shared object or - in the case of statically linked
20 // sanitizers
21 // - the main program itself, that contains the sanitizer.
22 const char* DladdrSelfFName(void);
24 } // namespace __sanitizer
26 #endif // SANITIZER_DL_H