summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2017-11-03 20:57:10 +0000
committerDavid Blaikie <dblaikie@gmail.com>2017-11-03 20:57:10 +0000
commit34eb96b03ff3a770b75c3106ba811daf8bc4e650 (patch)
tree0836a6a216223b9a472e46793e856c48081bfcc4
parent998ff81f7c06fa1cae39962c65dfcca9bbd17ebd (diff)
downloadbcm5719-llvm-34eb96b03ff3a770b75c3106ba811daf8bc4e650.tar.gz
bcm5719-llvm-34eb96b03ff3a770b75c3106ba811daf8bc4e650.zip
GCOV: Move GCOV from IR & Support into ProfileData to fix layering
This class was split between libIR and libSupport, which breaks under modular code generation. Move it into the one library that uses it, ProfileData, to resolve this issue. llvm-svn: 317366
-rw-r--r--llvm/include/llvm/ProfileData/GCOV.h (renamed from llvm/include/llvm/Support/GCOV.h)4
-rw-r--r--llvm/include/llvm/ProfileData/SampleProfReader.h2
-rw-r--r--llvm/lib/IR/CMakeLists.txt1
-rw-r--r--llvm/lib/ProfileData/CMakeLists.txt1
-rw-r--r--llvm/lib/ProfileData/GCOV.cpp (renamed from llvm/lib/IR/GCOV.cpp)2
-rw-r--r--llvm/tools/llvm-cov/gcov.cpp2
6 files changed, 6 insertions, 6 deletions
diff --git a/llvm/include/llvm/Support/GCOV.h b/llvm/include/llvm/ProfileData/GCOV.h
index 02016e7dbd6..497f80b87b2 100644
--- a/llvm/include/llvm/Support/GCOV.h
+++ b/llvm/include/llvm/ProfileData/GCOV.h
@@ -12,8 +12,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_SUPPORT_GCOV_H
-#define LLVM_SUPPORT_GCOV_H
+#ifndef LLVM_PROFILEDATA_GCOV_H
+#define LLVM_PROFILEDATA_GCOV_H
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/MapVector.h"
diff --git a/llvm/include/llvm/ProfileData/SampleProfReader.h b/llvm/include/llvm/ProfileData/SampleProfReader.h
index 9c1f357cbbd..0e9ab2dc60e 100644
--- a/llvm/include/llvm/ProfileData/SampleProfReader.h
+++ b/llvm/include/llvm/ProfileData/SampleProfReader.h
@@ -217,10 +217,10 @@
#include "llvm/IR/Function.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/ProfileSummary.h"
+#include "llvm/ProfileData/GCOV.h"
#include "llvm/ProfileData/SampleProf.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorOr.h"
-#include "llvm/Support/GCOV.h"
#include "llvm/Support/MemoryBuffer.h"
#include <algorithm>
#include <cstdint>
diff --git a/llvm/lib/IR/CMakeLists.txt b/llvm/lib/IR/CMakeLists.txt
index eb4b9143090..17822bbbb5c 100644
--- a/llvm/lib/IR/CMakeLists.txt
+++ b/llvm/lib/IR/CMakeLists.txt
@@ -22,7 +22,6 @@ add_llvm_library(LLVMCore
DiagnosticPrinter.cpp
Dominators.cpp
Function.cpp
- GCOV.cpp
GVMaterializer.cpp
Globals.cpp
IRBuilder.cpp
diff --git a/llvm/lib/ProfileData/CMakeLists.txt b/llvm/lib/ProfileData/CMakeLists.txt
index cd65762ae6a..3a981d8acf4 100644
--- a/llvm/lib/ProfileData/CMakeLists.txt
+++ b/llvm/lib/ProfileData/CMakeLists.txt
@@ -1,4 +1,5 @@
add_llvm_library(LLVMProfileData
+ GCOV.cpp
InstrProf.cpp
InstrProfReader.cpp
InstrProfWriter.cpp
diff --git a/llvm/lib/IR/GCOV.cpp b/llvm/lib/ProfileData/GCOV.cpp
index d4b45522822..d6e44389f2b 100644
--- a/llvm/lib/IR/GCOV.cpp
+++ b/llvm/lib/ProfileData/GCOV.cpp
@@ -12,7 +12,7 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Support/GCOV.h"
+#include "llvm/ProfileData/GCOV.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FileSystem.h"
diff --git a/llvm/tools/llvm-cov/gcov.cpp b/llvm/tools/llvm-cov/gcov.cpp
index 4df7f015fd1..7776f2aa9a6 100644
--- a/llvm/tools/llvm-cov/gcov.cpp
+++ b/llvm/tools/llvm-cov/gcov.cpp
@@ -11,11 +11,11 @@
//
//===----------------------------------------------------------------------===//
+#include "llvm/ProfileData/GCOV.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/FileSystem.h"
-#include "llvm/Support/GCOV.h"
#include "llvm/Support/Path.h"
#include <system_error>
using namespace llvm;
OpenPOWER on IntegriCloud