diff options
author | Devang Patel <dpatel@apple.com> | 2011-10-04 17:24:48 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-10-04 17:24:48 +0000 |
commit | 58c620024ad00eae80a766e8e2b3b1d9414dc4cf (patch) | |
tree | c9023032fb190a9acac8b12337d33bb510ee86f8 | |
parent | 1f121e844fad436b6fcf8981cc9297f7aad43125 (diff) | |
download | external_llvm-58c620024ad00eae80a766e8e2b3b1d9414dc4cf.zip external_llvm-58c620024ad00eae80a766e8e2b3b1d9414dc4cf.tar.gz external_llvm-58c620024ad00eae80a766e8e2b3b1d9414dc4cf.tar.bz2 |
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
-rw-r--r-- | include/llvm/Support/GCOV.h (renamed from tools/llvm-cov/GCOVReader.h) | 10 | ||||
-rw-r--r-- | lib/VMCore/GCOV.cpp (renamed from tools/llvm-cov/GCOVReader.cpp) | 8 | ||||
-rw-r--r-- | tools/llvm-cov/llvm-cov.cpp | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/tools/llvm-cov/GCOVReader.h b/include/llvm/Support/GCOV.h index 98a556c..49cd87f 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 index 2b40a84..fc7f96f 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 5e4c1ec..7b21c5b 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" |