aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm-c/TargetMachine.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-04-22 22:47:22 +0000
committerEric Christopher <echristo@gmail.com>2013-04-22 22:47:22 +0000
commit04d4e9312c69ef1fa4896e9289beeb3e763e7415 (patch)
treec198830379abfddf31ebde3cecadd3a343a8d4a5 /llvm/include/llvm-c/TargetMachine.h
parentebeabab9a9b61b34439fbc243f4e1aab640440b6 (diff)
downloadllvm-04d4e9312c69ef1fa4896e9289beeb3e763e7415.zip
llvm-04d4e9312c69ef1fa4896e9289beeb3e763e7415.tar.gz
llvm-04d4e9312c69ef1fa4896e9289beeb3e763e7415.tar.bz2
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/TargetMachine.h')
-rw-r--r--llvm/include/llvm-c/TargetMachine.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/include/llvm-c/TargetMachine.h b/llvm/include/llvm-c/TargetMachine.h
index a02161a..5878723 100644
--- a/llvm/include/llvm-c/TargetMachine.h
+++ b/llvm/include/llvm-c/TargetMachine.h
@@ -117,30 +117,8 @@ LLVMBool LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T, LLVMModuleRef M,
/** Compile the LLVM IR stored in \p M and store the result in \p OutMemBuf. */
LLVMBool LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T, LLVMModuleRef M,
LLVMCodeGenFileType codegen, char** ErrorMessage, LLVMMemoryBufferRef *OutMemBuf);
-
-
-
#ifdef __cplusplus
}
-
-namespace llvm {
- class TargetMachine;
- class Target;
-
- inline TargetMachine *unwrap(LLVMTargetMachineRef P) {
- return reinterpret_cast<TargetMachine*>(P);
- }
- inline Target *unwrap(LLVMTargetRef P) {
- return reinterpret_cast<Target*>(P);
- }
- inline LLVMTargetMachineRef wrap(const TargetMachine *P) {
- return reinterpret_cast<LLVMTargetMachineRef>(
- const_cast<TargetMachine*>(P));
- }
- inline LLVMTargetRef wrap(const Target * P) {
- return reinterpret_cast<LLVMTargetRef>(const_cast<Target*>(P));
- }
-}
#endif
#endif