diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-21 07:52:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-21 07:52:40 +0000 |
commit | a0a51c7b0e2655e8eb1a3b0a2a830355c90edffc (patch) | |
tree | 9d4ff61f14636751833dcb7298310b7d3870c3d8 /llvm/include/llvm-c/Target.h | |
parent | 4edfcb88e1063b9cef439c00b948a0eae34cc45b (diff) | |
download | bcm5719-llvm-a0a51c7b0e2655e8eb1a3b0a2a830355c90edffc.tar.gz bcm5719-llvm-a0a51c7b0e2655e8eb1a3b0a2a830355c90edffc.zip |
improve compatibility with SWIG, patch by James Knight!
llvm-svn: 91822
Diffstat (limited to 'llvm/include/llvm-c/Target.h')
-rw-r--r-- | llvm/include/llvm-c/Target.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/include/llvm-c/Target.h b/llvm/include/llvm-c/Target.h index 43388512e87..00571826487 100644 --- a/llvm/include/llvm-c/Target.h +++ b/llvm/include/llvm-c/Target.h @@ -35,9 +35,11 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef; /* Declare all of the target-initialization functions that are available. */ #define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##TargetInfo(); #include "llvm/Config/Targets.def" - +#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ + #define LLVM_TARGET(TargetName) void LLVMInitialize##TargetName##Target(); #include "llvm/Config/Targets.def" +#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ /** LLVMInitializeAllTargetInfos - The main program should call this function if it wants access to all available targets that LLVM is configured to @@ -45,6 +47,7 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef; static inline void LLVMInitializeAllTargetInfos() { #define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo(); #include "llvm/Config/Targets.def" +#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ } /** LLVMInitializeAllTargets - The main program should call this function if it @@ -53,6 +56,7 @@ static inline void LLVMInitializeAllTargetInfos() { static inline void LLVMInitializeAllTargets() { #define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##Target(); #include "llvm/Config/Targets.def" +#undef LLVM_TARGET /* Explicit undef to make SWIG happier */ } /** LLVMInitializeNativeTarget - The main program should call this function to |