LLVM 22.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 void printSwitchToSection(const MCSection &, uint32_t, const Triple &,
25 raw_ostream &) const final;
26 bool useCodeAlign(const MCSection &Sec) const final;
27
28 /// True if the section is atomized using the symbols in it.
29 /// This is false if the section is atomized based on its contents (MachO' __TEXT,__cstring for
30 /// example).
31 static bool isSectionAtomizableBySymbols(const MCSection &Section);
32};
33
34} // end namespace llvm
35
36#endif // LLVM_MC_MCASMINFODARWIN_H
void printSwitchToSection(const MCSection &, uint32_t, const Triple &, raw_ostream &) const final
static bool isSectionAtomizableBySymbols(const MCSection &Section)
True if the section is atomized using the symbols in it.
bool useCodeAlign(const MCSection &Sec) const final
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition MCSection.h:521
Triple - Helper class for working with autoconf configuration names.
Definition Triple.h:47
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
This is an optimization pass for GlobalISel generic memory operations.