LCOV - code coverage report
Current view: top level - lib/MC - MCAsmInfoCOFF.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 14 17 82.4 %
Date: 2017-09-14 15:23:50 Functions: 1 4 25.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- MCAsmInfoCOFF.cpp - COFF 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 COFF-based targets
      12             : //
      13             : //===----------------------------------------------------------------------===//
      14             : 
      15             : #include "llvm/MC/MCAsmInfoCOFF.h"
      16             : #include "llvm/MC/MCDirectives.h"
      17             : 
      18             : using namespace llvm;
      19             : 
      20           0 : void MCAsmInfoCOFF::anchor() {}
      21             : 
      22        1380 : MCAsmInfoCOFF::MCAsmInfoCOFF() {
      23             :   // MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
      24             :   // alignment.
      25        1380 :   COMMDirectiveAlignmentIsInBytes = false;
      26        1380 :   LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
      27        1380 :   HasDotTypeDotSizeDirective = false;
      28        1380 :   HasSingleParameterDotFile = false;
      29        1380 :   WeakRefDirective = "\t.weak\t";
      30        1380 :   HasLinkOnceDirective = true;
      31             : 
      32             :   // Doesn't support visibility:
      33        1380 :   HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
      34        1380 :   ProtectedVisibilityAttr = MCSA_Invalid;
      35             : 
      36             :   // Set up DWARF directives
      37        1380 :   SupportsDebugInformation = true;
      38        1380 :   NeedsDwarfSectionOffsetDirective = true;
      39             : 
      40        1380 :   UseIntegratedAssembler = true;
      41             : 
      42             :   // At least MSVC inline-asm does AShr.
      43        1380 :   UseLogicalShr = false;
      44        1380 : }
      45             : 
      46           0 : void MCAsmInfoMicrosoft::anchor() {}
      47             : 
      48             : MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() = default;
      49             : 
      50           0 : void MCAsmInfoGNUCOFF::anchor() {}
      51             : 
      52             : MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() = default;

Generated by: LCOV version 1.13