OSDN Git Service

Put GCOVFile and other related interface in a common header so that llvm-cov tool...
authorDevang Patel <dpatel@apple.com>
Tue, 4 Oct 2011 17:24:48 +0000 (17:24 +0000)
committerDevang Patel <dpatel@apple.com>
Tue, 4 Oct 2011 17:24:48 +0000 (17:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141095 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/GCOV.h [moved from tools/llvm-cov/GCOVReader.h with 96% similarity]
lib/VMCore/GCOV.cpp [moved from tools/llvm-cov/GCOVReader.cpp with 97% similarity]
tools/llvm-cov/llvm-cov.cpp

similarity index 96%
rename from tools/llvm-cov/GCOVReader.h
rename to include/llvm/Support/GCOV.h
index 98a556c..49cd87f 100644 (file)
@@ -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"
similarity index 97%
rename from tools/llvm-cov/GCOVReader.cpp
rename to lib/VMCore/GCOV.cpp
index 2b40a84..fc7f96f 100644 (file)
@@ -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"
index 5e4c1ec..7b21c5b 100644 (file)
@@ -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"