Fix use of config.h in public headers.
authorEric Fiselier <eric@efcs.ca>
Sat, 18 Nov 2017 22:42:26 +0000 (22:42 +0000)
committerEric Fiselier <eric@efcs.ca>
Sat, 18 Nov 2017 22:42:26 +0000 (22:42 +0000)
The CodeGenCoverage.h header is installed, but it references
the build-only header "llvm/Config/config.h". This breaks use
of the CodeGenCoverage.h header once it is installed, because config.h isn't
available.

This patch fixes the error by moving the config.h include from
the CodeGenCoverage.h header (where it's not needed), to the
CodeGenCoverage.cpp source file.

llvm-svn: 318602

llvm/include/llvm/Support/CodeGenCoverage.h
llvm/lib/Support/CodeGenCoverage.cpp

index d09c32f..d5bd837 100644 (file)
@@ -13,7 +13,6 @@
 #define LLVM_SUPPORT_CODEGENCOVERAGE_H
 
 #include "llvm/ADT/BitVector.h"
-#include "llvm/Config/config.h"
 
 namespace llvm {
 class LLVMContext;
index c2308c7..ebfe65a 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "llvm/Support/CodeGenCoverage.h"
 
+#include "llvm/Config/config.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/MemoryBuffer.h"