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 | 8dfb65516b92d9aedb9f5a20028f0511d7c8eeab (patch) | |
| tree | 10f540373f8fdb34184ef67ac38070e84b482f09 /llvm | |
| parent | b26b49ca63d2198e58774af60b1465e0725657d6 (diff) | |
| download | bcm5719-llvm-8dfb65516b92d9aedb9f5a20028f0511d7c8eeab.tar.gz bcm5719-llvm-8dfb65516b92d9aedb9f5a20028f0511d7c8eeab.zip | |
Put GCOVFile and other related interface in a common header so that llvm-cov tool can share it with GCOV writer.
llvm-svn: 141095
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/GCOV.h (renamed from llvm/tools/llvm-cov/GCOVReader.h) | 10 | ||||
| -rw-r--r-- | llvm/lib/VMCore/GCOV.cpp (renamed from llvm/tools/llvm-cov/GCOVReader.cpp) | 8 | ||||
| -rw-r--r-- | llvm/tools/llvm-cov/llvm-cov.cpp | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/llvm/tools/llvm-cov/GCOVReader.h b/llvm/include/llvm/Support/GCOV.h index 98a556c78d0..49cd87fc7b4 100644 --- a/llvm/tools/llvm-cov/GCOVReader.h +++ b/llvm/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/llvm/tools/llvm-cov/GCOVReader.cpp b/llvm/lib/VMCore/GCOV.cpp index 2b40a84f8ef..fc7f96fccaa 100644 --- a/llvm/tools/llvm-cov/GCOVReader.cpp +++ b/llvm/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/llvm/tools/llvm-cov/llvm-cov.cpp b/llvm/tools/llvm-cov/llvm-cov.cpp index 5e4c1ec9de0..7b21c5bae20 100644 --- a/llvm/tools/llvm-cov/llvm-cov.cpp +++ b/llvm/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" |

