LCOV - code coverage report
Current view: top level - lib/Target/ARM/TargetInfo - ARMTargetInfo.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 18 18 100.0 %
Date: 2017-09-14 15:23:50 Functions: 5 5 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- ARMTargetInfo.cpp - ARM Target Implementation ---------------------===//
       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             : #include "MCTargetDesc/ARMMCTargetDesc.h"
      11             : #include "llvm/Support/TargetRegistry.h"
      12             : using namespace llvm;
      13             : 
      14      482502 : Target &llvm::getTheARMLETarget() {
      15      542876 :   static Target TheARMLETarget;
      16      482502 :   return TheARMLETarget;
      17             : }
      18      482502 : Target &llvm::getTheARMBETarget() {
      19      542876 :   static Target TheARMBETarget;
      20      482502 :   return TheARMBETarget;
      21             : }
      22      482502 : Target &llvm::getTheThumbLETarget() {
      23      542876 :   static Target TheThumbLETarget;
      24      482502 :   return TheThumbLETarget;
      25             : }
      26      482502 : Target &llvm::getTheThumbBETarget() {
      27      542876 :   static Target TheThumbBETarget;
      28      482502 :   return TheThumbBETarget;
      29             : }
      30             : 
      31       78617 : extern "C" void LLVMInitializeARMTargetInfo() {
      32             :   RegisterTarget<Triple::arm, /*HasJIT=*/true> X(getTheARMLETarget(), "arm",
      33      157234 :                                                  "ARM");
      34             :   RegisterTarget<Triple::armeb, /*HasJIT=*/true> Y(getTheARMBETarget(), "armeb",
      35      157234 :                                                    "ARM (big endian)");
      36             : 
      37             :   RegisterTarget<Triple::thumb, /*HasJIT=*/true> A(getTheThumbLETarget(),
      38      157234 :                                                    "thumb", "Thumb");
      39             :   RegisterTarget<Triple::thumbeb, /*HasJIT=*/true> B(
      40      157234 :       getTheThumbBETarget(), "thumbeb", "Thumb (big endian)");
      41       78617 : }

Generated by: LCOV version 1.13