|
|
|||
File indexing completed on 2026-05-10 08:43:52
0001 //===----- RegisterEHFrames.h -- Register EH frame sections -----*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 // 0009 // Support for dynamically registering and deregistering eh-frame sections 0010 // in-process via libunwind. 0011 // 0012 // FIXME: The functionality in this file should be moved to the ORC runtime. 0013 // 0014 //===----------------------------------------------------------------------===// 0015 0016 #ifndef LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_REGISTEREHFRAMES_H 0017 #define LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_REGISTEREHFRAMES_H 0018 0019 #include "llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h" 0020 #include "llvm/Support/Compiler.h" 0021 #include "llvm/Support/Error.h" 0022 0023 namespace llvm { 0024 namespace orc { 0025 0026 /// Register frames in the given eh-frame section with libunwind. 0027 Error registerEHFrameSection(const void *EHFrameSectionAddr, 0028 size_t EHFrameSectionSize); 0029 0030 /// Unregister frames in the given eh-frame section with libunwind. 0031 Error deregisterEHFrameSection(const void *EHFrameSectionAddr, 0032 size_t EHFrameSectionSize); 0033 0034 } // end namespace orc 0035 } // end namespace llvm 0036 0037 extern "C" LLVM_ABI llvm::orc::shared::CWrapperFunctionResult 0038 llvm_orc_registerEHFrameSectionWrapper(const char *Data, uint64_t Size); 0039 0040 extern "C" LLVM_ABI llvm::orc::shared::CWrapperFunctionResult 0041 llvm_orc_deregisterEHFrameSectionWrapper(const char *Data, uint64_t Size); 0042 0043 #endif // LLVM_EXECUTIONENGINE_ORC_TARGETPROCESS_REGISTEREHFRAMES_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|