LLVM 20.0.0git
ObjectFormats.cpp
Go to the documentation of this file.
1//===---------- ObjectFormats.cpp - Object format details for ORC ---------===//
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// ORC-specific object format details.
10//
11//===----------------------------------------------------------------------===//
12
14
15namespace llvm {
16namespace orc {
17
19
26
31};
32
35
37 for (auto &InitSection : MachOInitSectionNames)
38 if (InitSection == QualifiedName)
39 return true;
40 return false;
41}
42
44 for (StringRef InitSection : ELFInitSectionNames) {
45 StringRef Name = SecName;
46 if (Name.consume_front(InitSection) && (Name.empty() || Name[0] == '.'))
47 return true;
48 }
49 return false;
50}
51
53 return SecName.starts_with(".CRT");
54}
55
56} // namespace orc
57} // namespace llvm
std::string Name
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:51
bool starts_with(StringRef Prefix) const
Check if this string starts with the given Prefix.
Definition: StringRef.h:265
StringRef ELFThreadBSSSectionName
StringRef ELFCtorArrayFuncSectionName
StringRef ELFFiniFuncSectionName
StringRef ELFInitSectionNames[3]
StringRef ELFEHFrameSectionName
bool isMachOInitializerSection(StringRef SegName, StringRef SecName)
StringRef ELFFiniArrayFuncSectionName
StringRef MachOInitSectionNames[22]
StringRef ELFThreadDataSectionName
StringRef ELFInitArrayFuncSectionName
bool isCOFFInitializerSection(StringRef Name)
bool isELFInitializerSection(StringRef SecName)
StringRef ELFInitFuncSectionName
StringRef ELFDtorArrayFuncSectionName
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18