LCOV - code coverage report
Current view: top level - lib/MC - MCAsmInfoELF.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 9 10 90.0 %
Date: 2017-09-14 15:23:50 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- MCAsmInfoELF.cpp - ELF asm properties ------------------------------===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : //
      10             : // This file defines target asm properties related what form asm statements
      11             : // should take in general on ELF-based targets
      12             : //
      13             : //===----------------------------------------------------------------------===//
      14             : 
      15             : #include "llvm/MC/MCAsmInfoELF.h"
      16             : #include "llvm/BinaryFormat/ELF.h"
      17             : #include "llvm/MC/MCContext.h"
      18             : #include "llvm/MC/MCSectionELF.h"
      19             : 
      20             : using namespace llvm;
      21             : 
      22           0 : void MCAsmInfoELF::anchor() {}
      23             : 
      24       13471 : MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
      25       13471 :   if (!UsesNonexecutableStackSection)
      26             :     return nullptr;
      27       26942 :   return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
      28             : }
      29             : 
      30       24945 : MCAsmInfoELF::MCAsmInfoELF() {
      31       24944 :   HasIdentDirective = true;
      32       24944 :   WeakRefDirective = "\t.weak\t";
      33       24944 :   PrivateGlobalPrefix = ".L";
      34       24944 :   PrivateLabelPrefix = ".L";
      35       24944 : }

Generated by: LCOV version 1.13