Fixed compilation warnings.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Mon, 17 Dec 2012 07:21:11 +0000 (15:21 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 29 Mar 2013 11:10:48 +0000 (19:10 +0800)
__STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS are in cflags,
we don't need to put them in source file. Otherwise, it causes
redefine warnings. Reported by guanqun.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/llvm/llvm_passes.cpp
backend/src/llvm/llvm_to_gen.cpp

index f19278c..bae784b 100644 (file)
@@ -30,8 +30,6 @@
  * Segovia) the right to use another license for it (MIT here)
  */
 
-#define __STDC_LIMIT_MACROS
-#define __STDC_CONSTANT_MACROS
 #include "llvm/CallingConv.h"
 #include "llvm/Constants.h"
 #include "llvm/DerivedTypes.h"
index fc44623..21193a5 100644 (file)
@@ -22,8 +22,6 @@
  * \author Benjamin Segovia <benjamin.segovia@intel.com>
  */
 
-#define __STDC_LIMIT_MACROS
-#define __STDC_CONSTANT_MACROS
 #include "llvm/LLVMContext.h"
 #include "llvm/Module.h"
 #include "llvm/PassManager.h"