Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/MC/MCAsmInfoELF.cpp
Line
Count
Source (jump to first uncovered line)
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
11
//
12
//===----------------------------------------------------------------------===//
13
14
#include "llvm/MC/MCAsmInfoELF.h"
15
#include "llvm/BinaryFormat/ELF.h"
16
#include "llvm/MC/MCContext.h"
17
#include "llvm/MC/MCSectionELF.h"
18
19
using namespace llvm;
20
21
0
void MCAsmInfoELF::anchor() {}
22
23
18.8k
MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
24
18.8k
  if (!UsesNonexecutableStackSection)
25
0
    return nullptr;
26
18.8k
  return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
27
18.8k
}
28
29
42.6k
MCAsmInfoELF::MCAsmInfoELF() {
30
42.6k
  HasIdentDirective = true;
31
42.6k
  WeakRefDirective = "\t.weak\t";
32
42.6k
  PrivateGlobalPrefix = ".L";
33
42.6k
  PrivateLabelPrefix = ".L";
34
42.6k
}