LLVM 20.0.0git
MCAsmInfoDarwin.h
Go to the documentation of this file.
1//===- MCAsmInfoDarwin.h - Darwin asm properties ----------------*- C++ -*-===//
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 defines target asm properties related what form asm statements
10// should take in general on Darwin-based targets
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_MC_MCASMINFODARWIN_H
15#define LLVM_MC_MCASMINFODARWIN_H
16
17#include "llvm/MC/MCAsmInfo.h"
18
19namespace llvm {
20
21class MCAsmInfoDarwin : public MCAsmInfo {
22public:
23 explicit MCAsmInfoDarwin();
24
25 /// True if the section is atomized using the symbols in it.
26 /// This is false if the section is atomized based on its contents (MachO' __TEXT,__cstring for
27 /// example).
28 static bool isSectionAtomizableBySymbols(const MCSection &Section);
29};
30
31} // end namespace llvm
32
33#endif // LLVM_MC_MCASMINFODARWIN_H
static bool isSectionAtomizableBySymbols(const MCSection &Section)
True if the section is atomized using the symbols in it.
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition: MCAsmInfo.h:56
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:36
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18