diff options
author | Eric Christopher <echristo@gmail.com> | 2013-04-22 22:47:22 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-04-22 22:47:22 +0000 |
commit | 04d4e9312c69ef1fa4896e9289beeb3e763e7415 (patch) | |
tree | c198830379abfddf31ebde3cecadd3a343a8d4a5 /llvm/include/llvm-c/Target.h | |
parent | ebeabab9a9b61b34439fbc243f4e1aab640440b6 (diff) | |
download | bcm5719-llvm-04d4e9312c69ef1fa4896e9289beeb3e763e7415.tar.gz bcm5719-llvm-04d4e9312c69ef1fa4896e9289beeb3e763e7415.zip |
Move C++ code out of the C headers and into either C++ headers
or the C++ files themselves. This enables people to use
just a C compiler to interoperate with LLVM.
llvm-svn: 180063
Diffstat (limited to 'llvm/include/llvm-c/Target.h')
-rw-r--r-- | llvm/include/llvm-c/Target.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/include/llvm-c/Target.h b/llvm/include/llvm-c/Target.h index 57abfa0207f..80fc3e5ad72 100644 --- a/llvm/include/llvm-c/Target.h +++ b/llvm/include/llvm-c/Target.h @@ -235,29 +235,6 @@ void LLVMDisposeTargetData(LLVMTargetDataRef); #ifdef __cplusplus } - -namespace llvm { - class DataLayout; - class TargetLibraryInfo; - - inline DataLayout *unwrap(LLVMTargetDataRef P) { - return reinterpret_cast<DataLayout*>(P); - } - - inline LLVMTargetDataRef wrap(const DataLayout *P) { - return reinterpret_cast<LLVMTargetDataRef>(const_cast<DataLayout*>(P)); - } - - inline TargetLibraryInfo *unwrap(LLVMTargetLibraryInfoRef P) { - return reinterpret_cast<TargetLibraryInfo*>(P); - } - - inline LLVMTargetLibraryInfoRef wrap(const TargetLibraryInfo *P) { - TargetLibraryInfo *X = const_cast<TargetLibraryInfo*>(P); - return reinterpret_cast<LLVMTargetLibraryInfoRef>(X); - } -} - #endif /* defined(__cplusplus) */ #endif |