forked from OSchip/llvm-project
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
This commit is contained in:
parent
998ff81f7c
commit
34eb96b03f
|
@ -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"
|
|
@ -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>
|
||||
|
|
|
@ -22,7 +22,6 @@ add_llvm_library(LLVMCore
|
|||
DiagnosticPrinter.cpp
|
||||
Dominators.cpp
|
||||
Function.cpp
|
||||
GCOV.cpp
|
||||
GVMaterializer.cpp
|
||||
Globals.cpp
|
||||
IRBuilder.cpp
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
add_llvm_library(LLVMProfileData
|
||||
GCOV.cpp
|
||||
InstrProf.cpp
|
||||
InstrProfReader.cpp
|
||||
InstrProfWriter.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"
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue