Browse code

define LLVM28, since we are using that now.

Török Edvin authored on 2010/11/06 21:41:10
Showing 2 changed files
... ...
@@ -54,6 +54,7 @@
54 54
 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
55 55
 #include "llvm/Support/Debug.h"
56 56
 
57
+#define LLVM28
57 58
 #ifdef LLVM28
58 59
 #define DEFINEPASS(passname) passname() : FunctionPass(ID)
59 60
 #else
... ...
@@ -66,6 +66,9 @@
66 66
 #include "llvm/System/Signals.h"
67 67
 #include "llvm/Support/Timer.h"
68 68
 #include "llvm/System/Threading.h"
69
+
70
+void LLVMInitializeX86AsmPrinter();
71
+void LLVMInitializePowerPCAsmPrinter();
69 72
 #include "llvm/Target/TargetSelect.h"
70 73
 #include "llvm/Target/TargetData.h"
71 74
 #include "llvm/Target/TargetOptions.h"
... ...
@@ -130,6 +133,7 @@ struct cli_bcengine {
130 130
 extern "C" uint8_t cli_debug_flag;
131 131
 namespace {
132 132
 
133
+#define LLVM28
133 134
 #ifdef LLVM28
134 135
 #define llvm_report_error(x) report_fatal_error(x)
135 136
 #define llvm_install_error_handler(x) install_fatal_error_handler(x)