Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:43:49

0001 //===--------- DWARFRecordSectionSplitter.h - JITLink -----------*- 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 #ifndef LLVM_EXECUTIONENGINE_JITLINK_DWARFRECORDSECTIONSPLITTER_H
0010 #define LLVM_EXECUTIONENGINE_JITLINK_DWARFRECORDSECTIONSPLITTER_H
0011 
0012 #include "llvm/ExecutionEngine/JITLink/JITLink.h"
0013 
0014 namespace llvm {
0015 namespace jitlink {
0016 
0017 /// A LinkGraph pass that splits blocks in a section that follows the DWARF
0018 /// Record format into sub-blocks where each header gets its own block.
0019 /// When splitting EHFrames, DWARFRecordSectionSplitter should not be run
0020 /// without EHFrameEdgeFixer, which is responsible for adding FDE-to-CIE edges.
0021 class DWARFRecordSectionSplitter {
0022 public:
0023   DWARFRecordSectionSplitter(StringRef SectionName);
0024   Error operator()(LinkGraph &G);
0025 
0026 private:
0027   Error processBlock(LinkGraph &G, Block &B, LinkGraph::SplitBlockCache &Cache);
0028 
0029   StringRef SectionName;
0030 };
0031 
0032 } // namespace jitlink
0033 } // namespace llvm
0034 
0035 #endif // LLVM_EXECUTIONENGINE_JITLINK_DWARFRECORDSECTIONSPLITTER_H