[InstCombine] Signed saturation patterns
[llvm-core.git] / lib / MC / MCAsmInfoELF.cpp
bloba5e8aff7f129d220b4505990170cafa3fae69b9d
1 //===- MCAsmInfoELF.cpp - ELF asm properties ------------------------------===//
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 ELF-based targets
12 //===----------------------------------------------------------------------===//
14 #include "llvm/MC/MCAsmInfoELF.h"
15 #include "llvm/BinaryFormat/ELF.h"
16 #include "llvm/MC/MCContext.h"
17 #include "llvm/MC/MCSectionELF.h"
19 using namespace llvm;
21 void MCAsmInfoELF::anchor() {}
23 MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
24 if (!UsesNonexecutableStackSection)
25 return nullptr;
26 return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
29 MCAsmInfoELF::MCAsmInfoELF() {
30 HasIdentDirective = true;
31 WeakRefDirective = "\t.weak\t";
32 PrivateGlobalPrefix = ".L";
33 PrivateLabelPrefix = ".L";