LCOV - code coverage report
Current view: top level - lib/Target/ARM/MCTargetDesc - ARMAsmBackendDarwin.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 2 3 66.7 %
Date: 2018-10-20 13:21:21 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- ARMAsmBackendDarwin.h   ARM Asm Backend Darwin ----------*- 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             : #ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
      11             : #define LLVM_LIB_TARGET_ARM_ARMASMBACKENDDARWIN_H
      12             : 
      13             : #include "ARMAsmBackend.h"
      14             : #include "llvm/BinaryFormat/MachO.h"
      15             : #include "llvm/MC/MCObjectWriter.h"
      16             : 
      17             : namespace llvm {
      18             : class ARMAsmBackendDarwin : public ARMAsmBackend {
      19             :   const MCRegisterInfo &MRI;
      20             : public:
      21             :   const MachO::CPUSubTypeARM Subtype;
      22             :   ARMAsmBackendDarwin(const Target &T, const MCSubtargetInfo &STI,
      23             :                       const MCRegisterInfo &MRI, MachO::CPUSubTypeARM st)
      24           0 :       : ARMAsmBackend(T, STI, support::little), MRI(MRI), Subtype(st) {}
      25             : 
      26             :   std::unique_ptr<MCObjectTargetWriter>
      27         927 :   createObjectTargetWriter() const override {
      28             :     return createARMMachObjectWriter(/*Is64Bit=*/false, MachO::CPU_TYPE_ARM,
      29         927 :                                      Subtype);
      30             :   }
      31             : 
      32             :   uint32_t generateCompactUnwindEncoding(
      33             :       ArrayRef<MCCFIInstruction> Instrs) const override;
      34             : };
      35             : } // end namespace llvm
      36             : 
      37             : #endif

Generated by: LCOV version 1.13