| 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 | |
| 19 | namespace llvm { |
| 20 | |
| 21 | class MCAsmInfoDarwin : public MCAsmInfo { |
| 22 | public: |
| 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 |
| 34 | |