Add 'undef's to make SWIG happier. Patch by Baozeng Ding.
authorBill Wendling <isanbard@gmail.com>
Mon, 26 Mar 2012 22:15:12 +0000 (22:15 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 26 Mar 2012 22:15:12 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153479 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/Target.h

index 258a2bee95c1aed6ebb2aa4612ce45b2e986f41e..568e60dfb43eec6b118b6f383686caa46b18a378 100644 (file)
@@ -58,16 +58,19 @@ typedef struct LLVMStructLayout *LLVMStructLayoutRef;
 #define LLVM_ASM_PRINTER(TargetName) \
   void LLVMInitialize##TargetName##AsmPrinter();
 #include "llvm/Config/AsmPrinters.def"
+#undef LLVM_ASM_PRINTER  /* Explicit undef to make SWIG happier */
 
 /* Declare all of the available assembly parser initialization functions. */
 #define LLVM_ASM_PARSER(TargetName) \
   void LLVMInitialize##TargetName##AsmParser();
 #include "llvm/Config/AsmParsers.def"
+#undef LLVM_ASM_PARSER  /* Explicit undef to make SWIG happier */
 
 /* Declare all of the available disassembler initialization functions. */
 #define LLVM_DISASSEMBLER(TargetName) \
   void LLVMInitialize##TargetName##Disassembler();
 #include "llvm/Config/Disassemblers.def"
+#undef LLVM_DISASSEMBLER  /* 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