LCOV - code coverage report
Current view: top level - lib/Testing/Support - Error.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 7 7 100.0 %
Date: 2018-07-13 00:08:38 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===- llvm/Testing/Support/Error.cpp -------------------------------------===//
       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/Testing/Support/Error.h"
      11             : 
      12             : #include "llvm/ADT/StringRef.h"
      13             : 
      14             : using namespace llvm;
      15             : 
      16        1108 : llvm::detail::ErrorHolder llvm::detail::TakeError(llvm::Error Err) {
      17        1108 :   std::vector<std::shared_ptr<ErrorInfoBase>> Infos;
      18        3324 :   handleAllErrors(std::move(Err),
      19          89 :                   [&Infos](std::unique_ptr<ErrorInfoBase> Info) {
      20          89 :                     Infos.emplace_back(std::move(Info));
      21             :                   });
      22        1108 :   return {std::move(Infos)};
      23        2246 : }

Generated by: LCOV version 1.13