From 58c620024ad00eae80a766e8e2b3b1d9414dc4cf Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 4 Oct 2011 17:24:48 +0000 Subject: [PATCH] Put GCOVFile and other related interface in a common header so that llvm-cov tool can share it with GCOV writer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141095 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../GCOVReader.h => include/llvm/Support/GCOV.h | 10 +++++----- tools/llvm-cov/GCOVReader.cpp => lib/VMCore/GCOV.cpp | 8 ++++---- tools/llvm-cov/llvm-cov.cpp | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) rename tools/llvm-cov/GCOVReader.h => include/llvm/Support/GCOV.h (96%) rename tools/llvm-cov/GCOVReader.cpp => lib/VMCore/GCOV.cpp (97%) diff --git a/tools/llvm-cov/GCOVReader.h b/include/llvm/Support/GCOV.h similarity index 96% rename from tools/llvm-cov/GCOVReader.h rename to include/llvm/Support/GCOV.h index 98a556c78d0..49cd87fc7b4 100644 --- a/tools/llvm-cov/GCOVReader.h +++ b/include/llvm/Support/GCOV.h @@ -1,4 +1,4 @@ -//===-- tools/llvm-cov/GCOVReader.h - LLVM coverage tool --------*- C++ -*-===// +//===-- llvm/Support/GCOV.h - LLVM coverage tool ----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -7,13 +7,13 @@ // //===----------------------------------------------------------------------===// // -// This header provides the interface to read coverage files that use 'gcov' -// format. +// This header provides the interface to read and write coverage files that +// use 'gcov' format. // //===----------------------------------------------------------------------===// -#ifndef GCOVREADER_H -#define GCOVREADER_H +#ifndef LLVM_GCOV_H +#define LLVM_GCOV_H #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringMap.h" diff --git a/tools/llvm-cov/GCOVReader.cpp b/lib/VMCore/GCOV.cpp similarity index 97% rename from tools/llvm-cov/GCOVReader.cpp rename to lib/VMCore/GCOV.cpp index 2b40a84f8ef..fc7f96fccaa 100644 --- a/tools/llvm-cov/GCOVReader.cpp +++ b/lib/VMCore/GCOV.cpp @@ -1,4 +1,4 @@ -//===- tools/llvm-cov/GCOVReader.cpp - LLVM coverage tool -----------------===// +//===- GCOVr.cpp - LLVM coverage tool -------------------------------------===// // // The LLVM Compiler Infrastructure // @@ -7,12 +7,12 @@ // //===----------------------------------------------------------------------===// // -// GCOVReader implements the interface to read coverage files that use 'gcov' -// format. +// GCOV implements the interface to read and write coverage files that use +// 'gcov' format. // //===----------------------------------------------------------------------===// -#include "GCOVReader.h" +#include "llvm/Support/GCOV.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/MemoryObject.h" diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp index 5e4c1ec9de0..7b21c5bae20 100644 --- a/tools/llvm-cov/llvm-cov.cpp +++ b/tools/llvm-cov/llvm-cov.cpp @@ -11,9 +11,9 @@ // //===----------------------------------------------------------------------===// -#include "GCOVReader.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/Support/CommandLine.h" +#include "llvm/Support/GCOV.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryObject.h" #include "llvm/Support/PrettyStackTrace.h" -- 2.34.1