<div dir="ltr">Gack. My commit forgot the attribution:<div><br></div><div>Patch by Amaury SECHET!</div><div><br></div><div>Thanks!</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 17, 2015 at 5:50 PM Eric Christopher via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: echristo<br>
Date: Thu Dec 17 19:46:52 2015<br>
New Revision: 255965<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=255965&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=255965&view=rev</a><br>
Log:<br>
Reorganize the C API headers to improve build times.<br>
<br>
Type specific declarations have been moved to Type.h and error handling<br>
routines have been moved to ErrorHandling.h. Both are included in Core.h<br>
so nothing should change for projects directly including the headers,<br>
but transitive dependencies may be affected.<br>
<br>
Added:<br>
llvm/trunk/include/llvm-c/ErrorHandling.h<br>
llvm/trunk/include/llvm-c/Types.h<br>
Modified:<br>
llvm/trunk/bindings/go/llvm/analysis.go<br>
llvm/trunk/bindings/go/llvm/bitreader.go<br>
llvm/trunk/bindings/go/llvm/executionengine.go<br>
llvm/trunk/bindings/go/llvm/linker.go<br>
llvm/trunk/bindings/go/llvm/target.go<br>
llvm/trunk/docs/ReleaseNotes.rst<br>
llvm/trunk/include/llvm-c/Analysis.h<br>
llvm/trunk/include/llvm-c/BitReader.h<br>
llvm/trunk/include/llvm-c/BitWriter.h<br>
llvm/trunk/include/llvm-c/Core.h<br>
llvm/trunk/include/llvm-c/ExecutionEngine.h<br>
llvm/trunk/include/llvm-c/IRReader.h<br>
llvm/trunk/include/llvm-c/Initialization.h<br>
llvm/trunk/include/llvm-c/Linker.h<br>
llvm/trunk/include/llvm-c/Object.h<br>
llvm/trunk/include/llvm-c/Support.h<br>
llvm/trunk/include/llvm-c/Target.h<br>
llvm/trunk/include/llvm-c/TargetMachine.h<br>
llvm/trunk/include/llvm-c/Transforms/IPO.h<br>
llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h<br>
llvm/trunk/include/llvm-c/Transforms/Scalar.h<br>
llvm/trunk/include/llvm-c/Transforms/Vectorize.h<br>
llvm/trunk/include/llvm/IR/DiagnosticInfo.h<br>
llvm/trunk/include/llvm/IR/LLVMContext.h<br>
llvm/trunk/include/llvm/IR/Type.h<br>
llvm/trunk/include/llvm/IR/Use.h<br>
llvm/trunk/include/llvm/IR/Value.h<br>
llvm/trunk/include/llvm/PassRegistry.h<br>
llvm/trunk/include/llvm/Support/CBindingWrapping.h<br>
llvm/trunk/include/llvm/Support/MemoryBuffer.h<br>
llvm/trunk/lib/Bitcode/Reader/BitReader.cpp<br>
llvm/trunk/lib/Support/ErrorHandling.cpp<br>
llvm/trunk/lib/Support/PrettyStackTrace.cpp<br>
llvm/trunk/tools/llvm-c-test/object.c<br>
llvm/trunk/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp<br>
llvm/trunk/unittests/IR/ConstantsTest.cpp<br>
llvm/trunk/unittests/Linker/LinkModulesTest.cpp<br>
<br>
Modified: llvm/trunk/bindings/go/llvm/analysis.go<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/analysis.go?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/analysis.go?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/bindings/go/llvm/analysis.go (original)<br>
+++ llvm/trunk/bindings/go/llvm/analysis.go Thu Dec 17 19:46:52 2015<br>
@@ -15,6 +15,7 @@ package llvm<br>
<br>
/*<br>
#include "llvm-c/Analysis.h" // If you are getting an error here read bindings/go/README.txt<br>
+#include "llvm-c/Core.h"<br>
#include <stdlib.h><br>
*/<br>
import "C"<br>
<br>
Modified: llvm/trunk/bindings/go/llvm/bitreader.go<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/bitreader.go?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/bitreader.go?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/bindings/go/llvm/bitreader.go (original)<br>
+++ llvm/trunk/bindings/go/llvm/bitreader.go Thu Dec 17 19:46:52 2015<br>
@@ -15,6 +15,7 @@ package llvm<br>
<br>
/*<br>
#include "llvm-c/BitReader.h"<br>
+#include "llvm-c/Core.h"<br>
#include <stdlib.h><br>
*/<br>
import "C"<br>
<br>
Modified: llvm/trunk/bindings/go/llvm/executionengine.go<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/executionengine.go?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/executionengine.go?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/bindings/go/llvm/executionengine.go (original)<br>
+++ llvm/trunk/bindings/go/llvm/executionengine.go Thu Dec 17 19:46:52 2015<br>
@@ -14,6 +14,7 @@<br>
package llvm<br>
<br>
/*<br>
+#include "llvm-c/Core.h"<br>
#include "llvm-c/ExecutionEngine.h"<br>
#include <stdlib.h><br>
*/<br>
<br>
Modified: llvm/trunk/bindings/go/llvm/linker.go<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/linker.go?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/linker.go?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/bindings/go/llvm/linker.go (original)<br>
+++ llvm/trunk/bindings/go/llvm/linker.go Thu Dec 17 19:46:52 2015<br>
@@ -14,6 +14,7 @@<br>
package llvm<br>
<br>
/*<br>
+#include "llvm-c/Core.h"<br>
#include "llvm-c/Linker.h"<br>
#include <stdlib.h><br>
*/<br>
<br>
Modified: llvm/trunk/bindings/go/llvm/target.go<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/target.go?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/target.go?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/bindings/go/llvm/target.go (original)<br>
+++ llvm/trunk/bindings/go/llvm/target.go Thu Dec 17 19:46:52 2015<br>
@@ -14,6 +14,7 @@<br>
package llvm<br>
<br>
/*<br>
+#include "llvm-c/Core.h"<br>
#include "llvm-c/Target.h"<br>
#include "llvm-c/TargetMachine.h"<br>
#include <stdlib.h><br>
<br>
Modified: llvm/trunk/docs/ReleaseNotes.rst<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ReleaseNotes.rst?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ReleaseNotes.rst?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/docs/ReleaseNotes.rst (original)<br>
+++ llvm/trunk/docs/ReleaseNotes.rst Thu Dec 17 19:46:52 2015<br>
@@ -52,6 +52,12 @@ Non-comprehensive list of changes in thi<br>
* The deprecated C APIs LLVMGetBitcodeModuleProviderInContext and<br>
LLVMGetBitcodeModuleProvider have been removed.<br>
<br>
+* With this release, the C API headers have been reorganized to improve build<br>
+ time. Type specific declarations have been moved to Type.h, and error<br>
+ handling routines have been moved to ErrorHandling.h. Both are included in<br>
+ Core.h so nothing should change for projects directly including the headers,<br>
+ but transitive dependencies may be affected.<br>
+<br>
.. NOTE<br>
For small 1-3 sentence descriptions, just add an entry at the end of<br>
this list. If your description won't fit comfortably in one bullet<br>
<br>
Modified: llvm/trunk/include/llvm-c/Analysis.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Analysis.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Analysis.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Analysis.h (original)<br>
+++ llvm/trunk/include/llvm-c/Analysis.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_ANALYSIS_H<br>
#define LLVM_C_ANALYSIS_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/BitReader.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/BitReader.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/BitReader.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/BitReader.h (original)<br>
+++ llvm/trunk/include/llvm-c/BitReader.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_BITREADER_H<br>
#define LLVM_C_BITREADER_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/BitWriter.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/BitWriter.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/BitWriter.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/BitWriter.h (original)<br>
+++ llvm/trunk/include/llvm-c/BitWriter.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_BITWRITER_H<br>
#define LLVM_C_BITWRITER_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/Core.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Core.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Core.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Core.h (original)<br>
+++ llvm/trunk/include/llvm-c/Core.h Thu Dec 17 19:46:52 2015<br>
@@ -15,7 +15,8 @@<br>
#ifndef LLVM_C_CORE_H<br>
#define LLVM_C_CORE_H<br>
<br>
-#include "llvm-c/Support.h"<br>
+#include "llvm-c/ErrorHandling.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
@@ -40,15 +41,6 @@ extern "C" {<br>
* the LLVM intermediate representation as well as other related types<br>
* and utilities.<br>
*<br>
- * LLVM uses a polymorphic type hierarchy which C cannot represent, therefore<br>
- * parameters must be passed as base types. Despite the declared types, most<br>
- * of the functions provided operate only on branches of the type hierarchy.<br>
- * The declared parameter names are descriptive and specify which type is<br>
- * required. Additionally, each type hierarchy is documented along with the<br>
- * functions that operate upon it. For more detail, refer to LLVM's C++ code.<br>
- * If in doubt, refer to Core.cpp, which performs parameter downcasts in the<br>
- * form unwrap<RequiredType>(Param).<br>
- *<br>
* Many exotic languages can interoperate with C code but have a harder time<br>
* with C++ due to name mangling. So in addition to C, this interface enables<br>
* tools written in such languages.<br>
@@ -62,74 +54,6 @@ extern "C" {<br>
* @{<br>
*/<br>
<br>
-/* Opaque types. */<br>
-<br>
-/**<br>
- * The top-level container for all LLVM global data. See the LLVMContext class.<br>
- */<br>
-typedef struct LLVMOpaqueContext *LLVMContextRef;<br>
-<br>
-/**<br>
- * The top-level container for all other LLVM Intermediate Representation (IR)<br>
- * objects.<br>
- *<br>
- * @see llvm::Module<br>
- */<br>
-typedef struct LLVMOpaqueModule *LLVMModuleRef;<br>
-<br>
-/**<br>
- * Each value in the LLVM IR has a type, an LLVMTypeRef.<br>
- *<br>
- * @see llvm::Type<br>
- */<br>
-typedef struct LLVMOpaqueType *LLVMTypeRef;<br>
-<br>
-/**<br>
- * Represents an individual value in LLVM IR.<br>
- *<br>
- * This models llvm::Value.<br>
- */<br>
-typedef struct LLVMOpaqueValue *LLVMValueRef;<br>
-<br>
-/**<br>
- * Represents a basic block of instructions in LLVM IR.<br>
- *<br>
- * This models llvm::BasicBlock.<br>
- */<br>
-typedef struct LLVMOpaqueBasicBlock *LLVMBasicBlockRef;<br>
-<br>
-/**<br>
- * Represents an LLVM basic block builder.<br>
- *<br>
- * This models llvm::IRBuilder.<br>
- */<br>
-typedef struct LLVMOpaqueBuilder *LLVMBuilderRef;<br>
-<br>
-/**<br>
- * Interface used to provide a module to JIT or interpreter.<br>
- * This is now just a synonym for llvm::Module, but we have to keep using the<br>
- * different type to keep binary compatibility.<br>
- */<br>
-typedef struct LLVMOpaqueModuleProvider *LLVMModuleProviderRef;<br>
-<br>
-/** @see llvm::PassManagerBase */<br>
-typedef struct LLVMOpaquePassManager *LLVMPassManagerRef;<br>
-<br>
-/** @see llvm::PassRegistry */<br>
-typedef struct LLVMOpaquePassRegistry *LLVMPassRegistryRef;<br>
-<br>
-/**<br>
- * Used to get the users and usees of a Value.<br>
- *<br>
- * @see llvm::Use */<br>
-typedef struct LLVMOpaqueUse *LLVMUseRef;<br>
-<br>
-<br>
-/**<br>
- * @see llvm::DiagnosticInfo<br>
- */<br>
-typedef struct LLVMOpaqueDiagnosticInfo *LLVMDiagnosticInfoRef;<br>
-<br>
typedef enum {<br>
LLVMZExtAttribute = 1<<0,<br>
LLVMSExtAttribute = 1<<1,<br>
@@ -438,30 +362,6 @@ void LLVMShutdown(void);<br>
char *LLVMCreateMessage(const char *Message);<br>
void LLVMDisposeMessage(char *Message);<br>
<br>
-typedef void (*LLVMFatalErrorHandler)(const char *Reason);<br>
-<br>
-/**<br>
- * Install a fatal error handler. By default, if LLVM detects a fatal error, it<br>
- * will call exit(1). This may not be appropriate in many contexts. For example,<br>
- * doing exit(1) will bypass many crash reporting/tracing system tools. This<br>
- * function allows you to install a callback that will be invoked prior to the<br>
- * call to exit(1).<br>
- */<br>
-void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler);<br>
-<br>
-/**<br>
- * Reset the fatal error handler. This resets LLVM's fatal error handling<br>
- * behavior to the default.<br>
- */<br>
-void LLVMResetFatalErrorHandler(void);<br>
-<br>
-/**<br>
- * Enable LLVM's built-in stack trace code. This intercepts the OS's crash<br>
- * signals and prints which component of LLVM you were in at the time if the<br>
- * crash.<br>
- */<br>
-void LLVMEnablePrettyStackTrace(void);<br>
-<br>
/**<br>
* @defgroup LLVMCCoreContext Contexts<br>
*<br>
@@ -2438,7 +2338,7 @@ void LLVMInstructionEraseFromParent(LLVM<br>
*<br>
* @see llvm::Instruction::getOpCode()<br>
*/<br>
-LLVMOpcode LLVMGetInstructionOpcode(LLVMValueRef Inst);<br>
+LLVMOpcode LLVMGetInstructionOpcode(LLVMValueRef Inst);<br>
<br>
/**<br>
* Obtain the predicate of an instruction.<br>
<br>
Added: llvm/trunk/include/llvm-c/ErrorHandling.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/ErrorHandling.h?rev=255965&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/ErrorHandling.h?rev=255965&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/ErrorHandling.h (added)<br>
+++ llvm/trunk/include/llvm-c/ErrorHandling.h Thu Dec 17 19:46:52 2015<br>
@@ -0,0 +1,51 @@<br>
+/*===-- llvm-c/ErrorHandling.h - Error Handling C Interface -------*- C -*-===*\<br>
+|* *|<br>
+|* The LLVM Compiler Infrastructure *|<br>
+|* *|<br>
+|* This file is distributed under the University of Illinois Open Source *|<br>
+|* License. See LICENSE.TXT for details. *|<br>
+|* *|<br>
+|*===----------------------------------------------------------------------===*|<br>
+|* *|<br>
+|* This file defines the C interface to LLVM's error handling mechanism. *|<br>
+|* *|<br>
+\*===----------------------------------------------------------------------===*/<br>
+<br>
+#ifndef LLVM_C_ERROR_HANDLING_H<br>
+#define LLVM_C_ERROR_HANDLING_H<br>
+<br>
+#include "llvm-c/Types.h"<br>
+<br>
+#ifdef __cplusplus<br>
+extern "C" {<br>
+#endif<br>
+<br>
+typedef void (*LLVMFatalErrorHandler)(const char *Reason);<br>
+<br>
+/**<br>
+ * Install a fatal error handler. By default, if LLVM detects a fatal error, it<br>
+ * will call exit(1). This may not be appropriate in many contexts. For example,<br>
+ * doing exit(1) will bypass many crash reporting/tracing system tools. This<br>
+ * function allows you to install a callback that will be invoked prior to the<br>
+ * call to exit(1).<br>
+ */<br>
+void LLVMInstallFatalErrorHandler(LLVMFatalErrorHandler Handler);<br>
+<br>
+/**<br>
+ * Reset the fatal error handler. This resets LLVM's fatal error handling<br>
+ * behavior to the default.<br>
+ */<br>
+void LLVMResetFatalErrorHandler(void);<br>
+<br>
+/**<br>
+ * Enable LLVM's built-in stack trace code. This intercepts the OS's crash<br>
+ * signals and prints which component of LLVM you were in at the time if the<br>
+ * crash.<br>
+ */<br>
+void LLVMEnablePrettyStackTrace(void);<br>
+<br>
+#ifdef __cplusplus<br>
+}<br>
+#endif<br>
+<br>
+#endif<br>
<br>
Modified: llvm/trunk/include/llvm-c/ExecutionEngine.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/ExecutionEngine.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/ExecutionEngine.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/ExecutionEngine.h (original)<br>
+++ llvm/trunk/include/llvm-c/ExecutionEngine.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_EXECUTIONENGINE_H<br>
#define LLVM_C_EXECUTIONENGINE_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
#include "llvm-c/Target.h"<br>
#include "llvm-c/TargetMachine.h"<br>
<br>
<br>
Modified: llvm/trunk/include/llvm-c/IRReader.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/IRReader.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/IRReader.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/IRReader.h (original)<br>
+++ llvm/trunk/include/llvm-c/IRReader.h Thu Dec 17 19:46:52 2015<br>
@@ -14,7 +14,7 @@<br>
#ifndef LLVM_C_IRREADER_H<br>
#define LLVM_C_IRREADER_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/Initialization.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Initialization.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Initialization.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Initialization.h (original)<br>
+++ llvm/trunk/include/llvm-c/Initialization.h Thu Dec 17 19:46:52 2015<br>
@@ -16,7 +16,7 @@<br>
#ifndef LLVM_C_INITIALIZATION_H<br>
#define LLVM_C_INITIALIZATION_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/Linker.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Linker.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Linker.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Linker.h (original)<br>
+++ llvm/trunk/include/llvm-c/Linker.h Thu Dec 17 19:46:52 2015<br>
@@ -14,7 +14,7 @@<br>
#ifndef LLVM_C_LINKER_H<br>
#define LLVM_C_LINKER_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/Object.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Object.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Object.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Object.h (original)<br>
+++ llvm/trunk/include/llvm-c/Object.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_OBJECT_H<br>
#define LLVM_C_OBJECT_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
#include "llvm/Config/llvm-config.h"<br>
<br>
#ifdef __cplusplus<br>
<br>
Modified: llvm/trunk/include/llvm-c/Support.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Support.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Support.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Support.h (original)<br>
+++ llvm/trunk/include/llvm-c/Support.h Thu Dec 17 19:46:52 2015<br>
@@ -15,31 +15,13 @@<br>
#define LLVM_C_SUPPORT_H<br>
<br>
#include "llvm/Support/DataTypes.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
#endif<br>
<br>
/**<br>
- * @defgroup LLVMCSupportTypes Types and Enumerations<br>
- *<br>
- * @{<br>
- */<br>
-<br>
-typedef int LLVMBool;<br>
-<br>
-/**<br>
- * Used to pass regions of memory through LLVM interfaces.<br>
- *<br>
- * @see llvm::MemoryBuffer<br>
- */<br>
-typedef struct LLVMOpaqueMemoryBuffer *LLVMMemoryBufferRef;<br>
-<br>
-/**<br>
- * @}<br>
- */<br>
-<br>
-/**<br>
* This function permanently loads the dynamic library at the given path.<br>
* It is safe to call this function multiple times for the same library.<br>
*<br>
<br>
Modified: llvm/trunk/include/llvm-c/Target.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Target.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Target.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Target.h (original)<br>
+++ llvm/trunk/include/llvm-c/Target.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_TARGET_H<br>
#define LLVM_C_TARGET_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
#include "llvm/Config/llvm-config.h"<br>
<br>
#if defined(_MSC_VER) && !defined(inline)<br>
<br>
Modified: llvm/trunk/include/llvm-c/TargetMachine.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/TargetMachine.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/TargetMachine.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/TargetMachine.h (original)<br>
+++ llvm/trunk/include/llvm-c/TargetMachine.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_TARGETMACHINE_H<br>
#define LLVM_C_TARGETMACHINE_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
#include "llvm-c/Target.h"<br>
<br>
#ifdef __cplusplus<br>
<br>
Modified: llvm/trunk/include/llvm-c/Transforms/IPO.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/IPO.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/IPO.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Transforms/IPO.h (original)<br>
+++ llvm/trunk/include/llvm-c/Transforms/IPO.h Thu Dec 17 19:46:52 2015<br>
@@ -15,7 +15,7 @@<br>
#ifndef LLVM_C_TRANSFORMS_IPO_H<br>
#define LLVM_C_TRANSFORMS_IPO_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h (original)<br>
+++ llvm/trunk/include/llvm-c/Transforms/PassManagerBuilder.h Thu Dec 17 19:46:52 2015<br>
@@ -14,7 +14,7 @@<br>
#ifndef LLVM_C_TRANSFORMS_PASSMANAGERBUILDER_H<br>
#define LLVM_C_TRANSFORMS_PASSMANAGERBUILDER_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
typedef struct LLVMOpaquePassManagerBuilder *LLVMPassManagerBuilderRef;<br>
<br>
<br>
Modified: llvm/trunk/include/llvm-c/Transforms/Scalar.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/Scalar.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/Scalar.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Transforms/Scalar.h (original)<br>
+++ llvm/trunk/include/llvm-c/Transforms/Scalar.h Thu Dec 17 19:46:52 2015<br>
@@ -19,7 +19,7 @@<br>
#ifndef LLVM_C_TRANSFORMS_SCALAR_H<br>
#define LLVM_C_TRANSFORMS_SCALAR_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
<br>
Modified: llvm/trunk/include/llvm-c/Transforms/Vectorize.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/Vectorize.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Transforms/Vectorize.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Transforms/Vectorize.h (original)<br>
+++ llvm/trunk/include/llvm-c/Transforms/Vectorize.h Thu Dec 17 19:46:52 2015<br>
@@ -20,7 +20,7 @@<br>
#ifndef LLVM_C_TRANSFORMS_VECTORIZE_H<br>
#define LLVM_C_TRANSFORMS_VECTORIZE_H<br>
<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#ifdef __cplusplus<br>
extern "C" {<br>
@@ -51,4 +51,3 @@ void LLVMAddSLPVectorizePass(LLVMPassMan<br>
#endif /* defined(__cplusplus) */<br>
<br>
#endif<br>
-<br>
<br>
Added: llvm/trunk/include/llvm-c/Types.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Types.h?rev=255965&view=auto" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Types.h?rev=255965&view=auto</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm-c/Types.h (added)<br>
+++ llvm/trunk/include/llvm-c/Types.h Thu Dec 17 19:46:52 2015<br>
@@ -0,0 +1,124 @@<br>
+/*===-- llvm-c/Support.h - C Interface Types declarations ---------*- C -*-===*\<br>
+|* *|<br>
+|* The LLVM Compiler Infrastructure *|<br>
+|* *|<br>
+|* This file is distributed under the University of Illinois Open Source *|<br>
+|* License. See LICENSE.TXT for details. *|<br>
+|* *|<br>
+|*===----------------------------------------------------------------------===*|<br>
+|* *|<br>
+|* This file defines types used by the the C interface to LLVM. *|<br>
+|* *|<br>
+\*===----------------------------------------------------------------------===*/<br>
+<br>
+#ifndef LLVM_C_TYPES_H<br>
+#define LLVM_C_TYPES_H<br>
+<br>
+#include "llvm/Support/DataTypes.h"<br>
+<br>
+#ifdef __cplusplus<br>
+extern "C" {<br>
+#endif<br>
+<br>
+/**<br>
+ * @defgroup LLVMCSupportTypes Types and Enumerations<br>
+ *<br>
+ * @{<br>
+ */<br>
+<br>
+typedef int LLVMBool;<br>
+<br>
+/* Opaque types. */<br>
+<br>
+/**<br>
+ * LLVM uses a polymorphic type hierarchy which C cannot represent, therefore<br>
+ * parameters must be passed as base types. Despite the declared types, most<br>
+ * of the functions provided operate only on branches of the type hierarchy.<br>
+ * The declared parameter names are descriptive and specify which type is<br>
+ * required. Additionally, each type hierarchy is documented along with the<br>
+ * functions that operate upon it. For more detail, refer to LLVM's C++ code.<br>
+ * If in doubt, refer to Core.cpp, which performs parameter downcasts in the<br>
+ * form unwrap<RequiredType>(Param).<br>
+ */<br>
+<br>
+/**<br>
+ * Used to pass regions of memory through LLVM interfaces.<br>
+ *<br>
+ * @see llvm::MemoryBuffer<br>
+ */<br>
+typedef struct LLVMOpaqueMemoryBuffer *LLVMMemoryBufferRef;<br>
+<br>
+/**<br>
+ * The top-level container for all LLVM global data. See the LLVMContext class.<br>
+ */<br>
+typedef struct LLVMOpaqueContext *LLVMContextRef;<br>
+<br>
+/**<br>
+ * The top-level container for all other LLVM Intermediate Representation (IR)<br>
+ * objects.<br>
+ *<br>
+ * @see llvm::Module<br>
+ */<br>
+typedef struct LLVMOpaqueModule *LLVMModuleRef;<br>
+<br>
+/**<br>
+ * Each value in the LLVM IR has a type, an LLVMTypeRef.<br>
+ *<br>
+ * @see llvm::Type<br>
+ */<br>
+typedef struct LLVMOpaqueType *LLVMTypeRef;<br>
+<br>
+/**<br>
+ * Represents an individual value in LLVM IR.<br>
+ *<br>
+ * This models llvm::Value.<br>
+ */<br>
+typedef struct LLVMOpaqueValue *LLVMValueRef;<br>
+<br>
+/**<br>
+ * Represents a basic block of instructions in LLVM IR.<br>
+ *<br>
+ * This models llvm::BasicBlock.<br>
+ */<br>
+typedef struct LLVMOpaqueBasicBlock *LLVMBasicBlockRef;<br>
+<br>
+/**<br>
+ * Represents an LLVM basic block builder.<br>
+ *<br>
+ * This models llvm::IRBuilder.<br>
+ */<br>
+typedef struct LLVMOpaqueBuilder *LLVMBuilderRef;<br>
+<br>
+/**<br>
+ * Interface used to provide a module to JIT or interpreter.<br>
+ * This is now just a synonym for llvm::Module, but we have to keep using the<br>
+ * different type to keep binary compatibility.<br>
+ */<br>
+typedef struct LLVMOpaqueModuleProvider *LLVMModuleProviderRef;<br>
+<br>
+/** @see llvm::PassManagerBase */<br>
+typedef struct LLVMOpaquePassManager *LLVMPassManagerRef;<br>
+<br>
+/** @see llvm::PassRegistry */<br>
+typedef struct LLVMOpaquePassRegistry *LLVMPassRegistryRef;<br>
+<br>
+/**<br>
+ * Used to get the users and usees of a Value.<br>
+ *<br>
+ * @see llvm::Use */<br>
+typedef struct LLVMOpaqueUse *LLVMUseRef;<br>
+<br>
+/**<br>
+ * @see llvm::DiagnosticInfo<br>
+ */<br>
+typedef struct LLVMOpaqueDiagnosticInfo *LLVMDiagnosticInfoRef;<br>
+<br>
+/**<br>
+ * @}<br>
+ */<br>
+<br>
+#ifdef __cplusplus<br>
+}<br>
+#endif<br>
+<br>
+#endif<br>
<br>
Modified: llvm/trunk/include/llvm/IR/DiagnosticInfo.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/IR/DiagnosticInfo.h (original)<br>
+++ llvm/trunk/include/llvm/IR/DiagnosticInfo.h Thu Dec 17 19:46:52 2015<br>
@@ -15,7 +15,6 @@<br>
#ifndef LLVM_IR_DIAGNOSTICINFO_H<br>
#define LLVM_IR_DIAGNOSTICINFO_H<br>
<br>
-#include "llvm-c/Core.h"<br>
#include "llvm/ADT/ArrayRef.h"<br>
#include "llvm/IR/DebugLoc.h"<br>
#include "llvm/IR/Module.h"<br>
<br>
Modified: llvm/trunk/include/llvm/IR/LLVMContext.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/LLVMContext.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/LLVMContext.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/IR/LLVMContext.h (original)<br>
+++ llvm/trunk/include/llvm/IR/LLVMContext.h Thu Dec 17 19:46:52 2015<br>
@@ -15,7 +15,6 @@<br>
#ifndef LLVM_IR_LLVMCONTEXT_H<br>
#define LLVM_IR_LLVMCONTEXT_H<br>
<br>
-#include "llvm-c/Core.h"<br>
#include "llvm/Support/CBindingWrapping.h"<br>
#include "llvm/Support/Compiler.h"<br>
#include "llvm/Support/Options.h"<br>
<br>
Modified: llvm/trunk/include/llvm/IR/Type.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Type.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Type.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/IR/Type.h (original)<br>
+++ llvm/trunk/include/llvm/IR/Type.h Thu Dec 17 19:46:52 2015<br>
@@ -15,7 +15,6 @@<br>
#ifndef LLVM_IR_TYPE_H<br>
#define LLVM_IR_TYPE_H<br>
<br>
-#include "llvm-c/Core.h"<br>
#include "llvm/ADT/APFloat.h"<br>
#include "llvm/ADT/SmallPtrSet.h"<br>
#include "llvm/Support/CBindingWrapping.h"<br>
<br>
Modified: llvm/trunk/include/llvm/IR/Use.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Use.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Use.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/IR/Use.h (original)<br>
+++ llvm/trunk/include/llvm/IR/Use.h Thu Dec 17 19:46:52 2015<br>
@@ -25,7 +25,6 @@<br>
#ifndef LLVM_IR_USE_H<br>
#define LLVM_IR_USE_H<br>
<br>
-#include "llvm-c/Core.h"<br>
#include "llvm/ADT/PointerIntPair.h"<br>
#include "llvm/Support/CBindingWrapping.h"<br>
#include "llvm/Support/Compiler.h"<br>
<br>
Modified: llvm/trunk/include/llvm/IR/Value.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Value.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Value.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/IR/Value.h (original)<br>
+++ llvm/trunk/include/llvm/IR/Value.h Thu Dec 17 19:46:52 2015<br>
@@ -14,7 +14,6 @@<br>
#ifndef LLVM_IR_VALUE_H<br>
#define LLVM_IR_VALUE_H<br>
<br>
-#include "llvm-c/Core.h"<br>
#include "llvm/ADT/iterator_range.h"<br>
#include "llvm/IR/Use.h"<br>
#include "llvm/Support/CBindingWrapping.h"<br>
<br>
Modified: llvm/trunk/include/llvm/PassRegistry.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassRegistry.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassRegistry.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/PassRegistry.h (original)<br>
+++ llvm/trunk/include/llvm/PassRegistry.h Thu Dec 17 19:46:52 2015<br>
@@ -17,7 +17,6 @@<br>
#ifndef LLVM_PASSREGISTRY_H<br>
#define LLVM_PASSREGISTRY_H<br>
<br>
-#include "llvm-c/Core.h"<br>
#include "llvm/ADT/DenseMap.h"<br>
#include "llvm/ADT/SmallPtrSet.h"<br>
#include "llvm/ADT/StringMap.h"<br>
<br>
Modified: llvm/trunk/include/llvm/Support/CBindingWrapping.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CBindingWrapping.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CBindingWrapping.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/Support/CBindingWrapping.h (original)<br>
+++ llvm/trunk/include/llvm/Support/CBindingWrapping.h Thu Dec 17 19:46:52 2015<br>
@@ -15,6 +15,7 @@<br>
#define LLVM_SUPPORT_CBINDINGWRAPPING_H<br>
<br>
#include "llvm/Support/Casting.h"<br>
+#include "llvm-c/Types.h"<br>
<br>
#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \<br>
inline ty *unwrap(ref P) { \<br>
<br>
Modified: llvm/trunk/include/llvm/Support/MemoryBuffer.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MemoryBuffer.h?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MemoryBuffer.h?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/include/llvm/Support/MemoryBuffer.h (original)<br>
+++ llvm/trunk/include/llvm/Support/MemoryBuffer.h Thu Dec 17 19:46:52 2015<br>
@@ -14,7 +14,6 @@<br>
#ifndef LLVM_SUPPORT_MEMORYBUFFER_H<br>
#define LLVM_SUPPORT_MEMORYBUFFER_H<br>
<br>
-#include "llvm-c/Support.h"<br>
#include "llvm/ADT/Twine.h"<br>
#include "llvm/Support/CBindingWrapping.h"<br>
#include "llvm/Support/DataTypes.h"<br>
<br>
Modified: llvm/trunk/lib/Bitcode/Reader/BitReader.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitReader.cpp?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitReader.cpp?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Bitcode/Reader/BitReader.cpp (original)<br>
+++ llvm/trunk/lib/Bitcode/Reader/BitReader.cpp Thu Dec 17 19:46:52 2015<br>
@@ -8,6 +8,7 @@<br>
//===----------------------------------------------------------------------===//<br>
<br>
#include "llvm-c/BitReader.h"<br>
+#include "llvm-c/Core.h"<br>
#include "llvm/Bitcode/ReaderWriter.h"<br>
#include "llvm/IR/DiagnosticPrinter.h"<br>
#include "llvm/IR/LLVMContext.h"<br>
<br>
Modified: llvm/trunk/lib/Support/ErrorHandling.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ErrorHandling.cpp?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/ErrorHandling.cpp?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Support/ErrorHandling.cpp (original)<br>
+++ llvm/trunk/lib/Support/ErrorHandling.cpp Thu Dec 17 19:46:52 2015<br>
@@ -13,7 +13,7 @@<br>
//===----------------------------------------------------------------------===//<br>
<br>
#include "llvm/Support/ErrorHandling.h"<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/ErrorHandling.h"<br>
#include "llvm/ADT/SmallVector.h"<br>
#include "llvm/ADT/Twine.h"<br>
#include "llvm/Config/config.h"<br>
<br>
Modified: llvm/trunk/lib/Support/PrettyStackTrace.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PrettyStackTrace.cpp?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/PrettyStackTrace.cpp?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/Support/PrettyStackTrace.cpp (original)<br>
+++ llvm/trunk/lib/Support/PrettyStackTrace.cpp Thu Dec 17 19:46:52 2015<br>
@@ -13,7 +13,7 @@<br>
//===----------------------------------------------------------------------===//<br>
<br>
#include "llvm/Support/PrettyStackTrace.h"<br>
-#include "llvm-c/Core.h"<br>
+#include "llvm-c/ErrorHandling.h"<br>
#include "llvm/ADT/SmallString.h"<br>
#include "llvm/Config/config.h" // Get autoconf configuration settings<br>
#include "llvm/Support/Compiler.h"<br>
<br>
Modified: llvm/trunk/tools/llvm-c-test/object.c<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-c-test/object.c?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-c-test/object.c?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/tools/llvm-c-test/object.c (original)<br>
+++ llvm/trunk/tools/llvm-c-test/object.c Thu Dec 17 19:46:52 2015<br>
@@ -13,6 +13,7 @@<br>
\*===----------------------------------------------------------------------===*/<br>
<br>
#include "llvm-c-test.h"<br>
+#include "llvm-c/Core.h"<br>
#include "llvm-c/Object.h"<br>
#include <stdio.h><br>
#include <stdlib.h><br>
<br>
Modified: llvm/trunk/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp (original)<br>
+++ llvm/trunk/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp Thu Dec 17 19:46:52 2015<br>
@@ -9,6 +9,7 @@<br>
<br>
#include "OrcTestCommon.h"<br>
#include "gtest/gtest.h"<br>
+#include "llvm-c/Core.h"<br>
#include "llvm-c/OrcBindings.h"<br>
#include "llvm-c/Target.h"<br>
#include "llvm-c/TargetMachine.h"<br>
<br>
Modified: llvm/trunk/unittests/IR/ConstantsTest.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/ConstantsTest.cpp?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/ConstantsTest.cpp?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/unittests/IR/ConstantsTest.cpp (original)<br>
+++ llvm/trunk/unittests/IR/ConstantsTest.cpp Thu Dec 17 19:46:52 2015<br>
@@ -15,6 +15,7 @@<br>
#include "llvm/IR/LLVMContext.h"<br>
#include "llvm/IR/Module.h"<br>
#include "llvm/Support/SourceMgr.h"<br>
+#include "llvm-c/Core.h"<br>
#include "gtest/gtest.h"<br>
<br>
namespace llvm {<br>
<br>
Modified: llvm/trunk/unittests/Linker/LinkModulesTest.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Linker/LinkModulesTest.cpp?rev=255965&r1=255964&r2=255965&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Linker/LinkModulesTest.cpp?rev=255965&r1=255964&r2=255965&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/unittests/Linker/LinkModulesTest.cpp (original)<br>
+++ llvm/trunk/unittests/Linker/LinkModulesTest.cpp Thu Dec 17 19:46:52 2015<br>
@@ -16,6 +16,7 @@<br>
#include "llvm/IR/Module.h"<br>
#include "llvm/Linker/Linker.h"<br>
#include "llvm/Support/SourceMgr.h"<br>
+#include "llvm-c/Core.h"<br>
#include "llvm-c/Linker.h"<br>
#include "gtest/gtest.h"<br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div></div>