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

          Line data    Source code
       1             : //===- lib/MC/MCNullStreamer.cpp - Dummy Streamer 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 "llvm/MC/MCContext.h"
      11             : #include "llvm/MC/MCInst.h"
      12             : #include "llvm/MC/MCSectionMachO.h"
      13             : #include "llvm/MC/MCStreamer.h"
      14             : #include "llvm/MC/MCSymbol.h"
      15             : 
      16             : using namespace llvm;
      17             : 
      18             : namespace {
      19             : 
      20         230 :   class MCNullStreamer : public MCStreamer {
      21             :   public:
      22         230 :     MCNullStreamer(MCContext &Context) : MCStreamer(Context) {}
      23             : 
      24             :     /// @name MCStreamer Interface
      25             :     /// @{
      26             : 
      27          28 :     bool EmitSymbolAttribute(MCSymbol *Symbol,
      28             :                              MCSymbolAttr Attribute) override {
      29          28 :       return true;
      30             :     }
      31             : 
      32           0 :     void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
      33           0 :                           unsigned ByteAlignment) override {}
      34           0 :     void EmitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
      35           0 :                       uint64_t Size = 0, unsigned ByteAlignment = 0) override {}
      36           0 :     void EmitGPRel32Value(const MCExpr *Value) override {}
      37           5 :     void BeginCOFFSymbolDef(const MCSymbol *Symbol) override {}
      38           5 :     void EmitCOFFSymbolStorageClass(int StorageClass) override {}
      39           5 :     void EmitCOFFSymbolType(int Type) override {}
      40           5 :     void EndCOFFSymbolDef() override {}
      41             :   };
      42             : 
      43             : }
      44             : 
      45         230 : MCStreamer *llvm::createNullStreamer(MCContext &Context) {
      46         460 :   return new MCNullStreamer(Context);
      47             : }

Generated by: LCOV version 1.13