diff options
author | Evan Cheng <evan.cheng@apple.com> | 2013-04-04 17:40:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2013-04-04 17:40:53 +0000 |
commit | 2e254d041e12928fd665d3aefcf3e83972901fc7 (patch) | |
tree | 1ec717154470ee7fbb2ab2cd3e555baccd12e637 | |
parent | 8f45ddf5d9951e7a1245a8f8c5e9c2a460f647bb (diff) | |
download | bcm5719-llvm-2e254d041e12928fd665d3aefcf3e83972901fc7.tar.gz bcm5719-llvm-2e254d041e12928fd665d3aefcf3e83972901fc7.zip |
Revert r178713
llvm-svn: 178769
-rw-r--r-- | llvm/include/llvm-c/Core.h | 11 | ||||
-rw-r--r-- | llvm/include/llvm-c/ExecutionEngine.h | 5 | ||||
-rw-r--r-- | llvm/include/llvm-c/Object.h | 8 | ||||
-rw-r--r-- | llvm/include/llvm-c/Target.h | 5 | ||||
-rw-r--r-- | llvm/include/llvm-c/TargetMachine.h | 4 | ||||
-rw-r--r-- | llvm/include/llvm-c/Transforms/PassManagerBuilder.h | 9 |
6 files changed, 13 insertions, 29 deletions
diff --git a/llvm/include/llvm-c/Core.h b/llvm/include/llvm-c/Core.h index cc78b2e6fd2..e85fb975050 100644 --- a/llvm/include/llvm-c/Core.h +++ b/llvm/include/llvm-c/Core.h @@ -17,15 +17,14 @@ #include "llvm/Support/DataTypes.h" -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) +#ifdef __cplusplus + /* Need these includes to support the LLVM 'cast' template for the C++ 'wrap' and 'unwrap' conversion functions. */ #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Module.h" #include "llvm/PassRegistry.h" -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ -#ifdef __cplusplus extern "C" { #endif @@ -2670,9 +2669,7 @@ LLVMBool LLVMIsMultithreaded(); #ifdef __cplusplus } -#endif -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) namespace llvm { class MemoryBuffer; class PassManagerBase; @@ -2766,6 +2763,6 @@ namespace llvm { } } -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ +#endif /* !defined(__cplusplus) */ -#endif /* defined(LLVM_C_CORE_H) */ +#endif /* !defined(LLVM_C_CORE_H) */ diff --git a/llvm/include/llvm-c/ExecutionEngine.h b/llvm/include/llvm-c/ExecutionEngine.h index 6ca316c2b1b..cb77bb2e2e2 100644 --- a/llvm/include/llvm-c/ExecutionEngine.h +++ b/llvm/include/llvm-c/ExecutionEngine.h @@ -138,9 +138,7 @@ void *LLVMGetPointerToGlobal(LLVMExecutionEngineRef EE, LLVMValueRef Global); #ifdef __cplusplus } -#endif -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) namespace llvm { struct GenericValue; class ExecutionEngine; @@ -159,6 +157,7 @@ namespace llvm { #undef DEFINE_SIMPLE_CONVERSION_FUNCTIONS } -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ + +#endif /* defined(__cplusplus) */ #endif diff --git a/llvm/include/llvm-c/Object.h b/llvm/include/llvm-c/Object.h index b6fe17a159f..e2dad62b4e0 100644 --- a/llvm/include/llvm-c/Object.h +++ b/llvm/include/llvm-c/Object.h @@ -22,11 +22,9 @@ #include "llvm-c/Core.h" #include "llvm/Config/llvm-config.h" -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) +#ifdef __cplusplus #include "llvm/Object/ObjectFile.h" -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ -#ifdef __cplusplus extern "C" { #endif @@ -101,9 +99,7 @@ const char *LLVMGetRelocationValueString(LLVMRelocationIteratorRef RI); #ifdef __cplusplus } -#endif -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) namespace llvm { namespace object { inline ObjectFile *unwrap(LLVMObjectFileRef OF) { @@ -146,8 +142,8 @@ namespace llvm { } } -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ +#endif /* defined(__cplusplus) */ #endif diff --git a/llvm/include/llvm-c/Target.h b/llvm/include/llvm-c/Target.h index 0327c04f177..57abfa0207f 100644 --- a/llvm/include/llvm-c/Target.h +++ b/llvm/include/llvm-c/Target.h @@ -235,9 +235,7 @@ void LLVMDisposeTargetData(LLVMTargetDataRef); #ifdef __cplusplus } -#endif -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) namespace llvm { class DataLayout; class TargetLibraryInfo; @@ -259,6 +257,7 @@ namespace llvm { return reinterpret_cast<LLVMTargetLibraryInfoRef>(X); } } -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ + +#endif /* defined(__cplusplus) */ #endif diff --git a/llvm/include/llvm-c/TargetMachine.h b/llvm/include/llvm-c/TargetMachine.h index e6f477af787..691abdfcb47 100644 --- a/llvm/include/llvm-c/TargetMachine.h +++ b/llvm/include/llvm-c/TargetMachine.h @@ -119,9 +119,7 @@ LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M, #ifdef __cplusplus } -#endif -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) namespace llvm { class TargetMachine; class Target; @@ -140,6 +138,6 @@ namespace llvm { return reinterpret_cast<LLVMTargetRef>(const_cast<Target*>(P)); } } -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ +#endif #endif diff --git a/llvm/include/llvm-c/Transforms/PassManagerBuilder.h b/llvm/include/llvm-c/Transforms/PassManagerBuilder.h index b39dd243991..82e513d4905 100644 --- a/llvm/include/llvm-c/Transforms/PassManagerBuilder.h +++ b/llvm/include/llvm-c/Transforms/PassManagerBuilder.h @@ -18,11 +18,8 @@ typedef struct LLVMOpaquePassManagerBuilder *LLVMPassManagerBuilderRef; -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) -#include "llvm/Transforms/IPO/PassManagerBuilder.h" -#endif - #ifdef __cplusplus +#include "llvm/Transforms/IPO/PassManagerBuilder.h" extern "C" { #endif @@ -89,9 +86,7 @@ void LLVMPassManagerBuilderPopulateLTOPassManager(LLVMPassManagerBuilderRef PMB, #ifdef __cplusplus } -#endif -#if defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) namespace llvm { inline PassManagerBuilder *unwrap(LLVMPassManagerBuilderRef P) { return reinterpret_cast<PassManagerBuilder*>(P); @@ -101,6 +96,6 @@ namespace llvm { return reinterpret_cast<LLVMPassManagerBuilderRef>(P); } } -#endif /* defined(__cplusplus) && !defined(LLVM_DO_NOT_INCLUDE_CPP_HEADERS) */ +#endif #endif |