zcov: / lib/Driver/Job.cpp


Files: 1 Branches Taken: 62.5% 5 / 8
Generated: 2010-02-10 01:31 Branches Executed: 50.0% 4 / 8
Line Coverage: 100.0% 11 / 11


Programs: 2 Runs 3018


       1                 : //===--- Job.cpp - Command to Execute -----------------------------------*-===//
       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 "clang/Driver/Job.h"
      11                 : 
      12                 : #include <cassert>
      13                 : using namespace clang::driver;
      14                 : 
                      248: branch 0 taken
                      248: branch 1 taken
                        0: branch 3 not taken
                        0: branch 4 not taken
                        0: branch 6 not taken
                      248: branch 7 taken
      15              248: Job::~Job() {}
      16                 : 
      17                 : Command::Command(const Action &_Source, const Tool &_Creator,
      18              237:                  const char *_Executable, const ArgStringList &_Arguments)
      19                 :   : Job(CommandClass), Source(_Source), Creator(_Creator),
      20              237:     Executable(_Executable), Arguments(_Arguments)
      21                 : {
      22              237: }
      23                 : 
      24               13: PipedJob::PipedJob() : Job(PipedJobClass) {}
      25                 : 
      26              248: JobList::JobList() : Job(JobListClass) {}
      27                 : 
      28              237: void Job::addCommand(Command *C) {
                       12: branch 1 taken
                      225: branch 2 taken
      29              237:   if (PipedJob *PJ = dyn_cast<PipedJob>(this))
      30               12:     PJ->addCommand(C);
      31                 :   else
      32              225:     cast<JobList>(this)->addJob(C);
      33              237: }
      34                 : 

Generated: 2010-02-10 01:31 by zcov