LCOV - code coverage report
Current view: top level - include/llvm/IR - DebugInfoFlags.def (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 29 30 96.7 %
Date: 2018-05-20 00:06:23 Functions: 0 0 -
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- llvm/IR/DebugInfoFlags.def - Debug info flag definitions -*- C++ -*-===//
       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             : // Macros for running through debug info flags.
      11             : //
      12             : //===----------------------------------------------------------------------===//
      13             : 
      14             : // TODO: Add other DW-based macros.
      15             : #ifndef HANDLE_DI_FLAG
      16             : #error "Missing macro definition of HANDLE_DI_FLAG"
      17             : #endif
      18             : 
      19           0 : HANDLE_DI_FLAG(0, Zero) // Use it as zero value.
      20             :                         // For example: void foo(DIFlags Flags = FlagZero).
      21        7016 : HANDLE_DI_FLAG(1, Private)
      22        7040 : HANDLE_DI_FLAG(2, Protected)
      23        7351 : HANDLE_DI_FLAG(3, Public)
      24        7271 : HANDLE_DI_FLAG((1 << 2), FwdDecl)
      25        7002 : HANDLE_DI_FLAG((1 << 3), AppleBlock)
      26        6983 : HANDLE_DI_FLAG((1 << 4), BlockByrefStruct)
      27        6992 : HANDLE_DI_FLAG((1 << 5), Virtual)
      28        9809 : HANDLE_DI_FLAG((1 << 6), Artificial)
      29        6978 : HANDLE_DI_FLAG((1 << 7), Explicit)
      30       10035 : HANDLE_DI_FLAG((1 << 8), Prototyped)
      31        7019 : HANDLE_DI_FLAG((1 << 9), ObjcClassComplete)
      32        8216 : HANDLE_DI_FLAG((1 << 10), ObjectPointer)
      33        6994 : HANDLE_DI_FLAG((1 << 11), Vector)
      34        7078 : HANDLE_DI_FLAG((1 << 12), StaticMember)
      35        6985 : HANDLE_DI_FLAG((1 << 13), LValueReference)
      36        6980 : HANDLE_DI_FLAG((1 << 14), RValueReference)
      37             : // 15 was formerly ExternalTypeRef, but this was never used.
      38        6977 : HANDLE_DI_FLAG((1 << 15), Reserved)
      39        6985 : HANDLE_DI_FLAG((1 << 16), SingleInheritance)
      40        6979 : HANDLE_DI_FLAG((2 << 16), MultipleInheritance)
      41        6979 : HANDLE_DI_FLAG((3 << 16), VirtualInheritance)
      42        6996 : HANDLE_DI_FLAG((1 << 18), IntroducedVirtual)
      43        6991 : HANDLE_DI_FLAG((1 << 19), BitField)
      44        6983 : HANDLE_DI_FLAG((1 << 20), NoReturn)
      45        6977 : HANDLE_DI_FLAG((1 << 21), MainSubprogram)
      46        7378 : HANDLE_DI_FLAG((1 << 22), TypePassByValue)
      47        7101 : HANDLE_DI_FLAG((1 << 23), TypePassByReference)
      48        7003 : HANDLE_DI_FLAG((1 << 24), FixedEnum)
      49        7007 : HANDLE_DI_FLAG((1 << 25), Thunk)
      50             : 
      51             : // To avoid needing a dedicated value for IndirectVirtualBase, we use
      52             : // the bitwise or of Virtual and FwdDecl, which does not otherwise
      53             : // make sense for inheritance.
      54        6978 : HANDLE_DI_FLAG((1 << 2) | (1 << 5), IndirectVirtualBase)
      55             : 
      56             : #ifdef DI_FLAG_LARGEST_NEEDED
      57             : // intended to be used with ADT/BitmaskEnum.h
      58             : // NOTE: always must be equal to largest flag, check this when adding new flag
      59             : HANDLE_DI_FLAG((1 << 25), Largest)
      60             : #undef DI_FLAG_LARGEST_NEEDED
      61             : #endif
      62             : 
      63             : #undef HANDLE_DI_FLAG

Generated by: LCOV version 1.13