Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ORC] Move ORC-specific object format details into OrcShared.
This allows these details to be shared with JITLink, which is allowed to depend on the OrcShared library (but not on OrcJIT).
- Loading branch information
Showing
16 changed files
with
214 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
llvm/include/llvm/ExecutionEngine/Orc/Shared/ObjectFormats.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
//===------ ObjectFormats.h - Object format details for ORC -----*- C++ -*-===// | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// ORC-specific object format details. | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_EXECUTIONENGINE_ORC_SHARED_OBJECTFORMATS_H | ||
#define LLVM_EXECUTIONENGINE_ORC_SHARED_OBJECTFORMATS_H | ||
|
||
#include "llvm/ADT/StringRef.h" | ||
|
||
namespace llvm { | ||
namespace orc { | ||
|
||
// MachO section names. | ||
extern StringRef MachODataCommonSectionName; | ||
extern StringRef MachODataDataSectionName; | ||
extern StringRef MachOEHFrameSectionName; | ||
extern StringRef MachOCompactUnwindInfoSectionName; | ||
extern StringRef MachOModInitFuncSectionName; | ||
extern StringRef MachOObjCClassListSectionName; | ||
extern StringRef MachOObjCImageInfoSectionName; | ||
extern StringRef MachOObjCSelRefsSectionName; | ||
extern StringRef MachOSwift5ProtoSectionName; | ||
extern StringRef MachOSwift5ProtosSectionName; | ||
extern StringRef MachOSwift5TypesSectionName; | ||
extern StringRef MachOThreadBSSSectionName; | ||
extern StringRef MachOThreadDataSectionName; | ||
extern StringRef MachOThreadVarsSectionName; | ||
extern StringRef MachOInitSectionNames[6]; | ||
|
||
// ELF section names. | ||
extern StringRef ELFEHFrameSectionName; | ||
extern StringRef ELFInitArrayFuncSectionName; | ||
|
||
extern StringRef ELFThreadBSSSectionName; | ||
extern StringRef ELFThreadDataSectionName; | ||
|
||
bool isMachOInitializerSection(StringRef SegName, StringRef SecName); | ||
bool isMachOInitializerSection(StringRef QualifiedName); | ||
|
||
bool isELFInitializerSection(StringRef SecName); | ||
|
||
bool isCOFFInitializerSection(StringRef Name); | ||
|
||
} // end namespace orc | ||
} // end namespace llvm | ||
|
||
#endif // LLVM_EXECUTIONENGINE_ORC_SHARED_MEMORYFLAGS_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.