diff options
author | James Meyer <james.meyer@operamail.com> | 2012-11-28 15:25:21 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-11-28 15:25:21 (GMT) |
commit | e4bfbdf02ec0118e2c973e10b1774d9f8b79dc91 (patch) | |
tree | 01bc5d3de8d85b63bd0a8554948a2ce537ec6e8a /abs/core/mesa/mesa-8.0.3-llvm-3.1-fixes.patch | |
parent | 3de5157bfd88ba0d6d4a036ba02ee5216c677af5 (diff) | |
download | linhes_pkgbuild-e4bfbdf02ec0118e2c973e10b1774d9f8b79dc91.zip linhes_pkgbuild-e4bfbdf02ec0118e2c973e10b1774d9f8b79dc91.tar.gz linhes_pkgbuild-e4bfbdf02ec0118e2c973e10b1774d9f8b79dc91.tar.bz2 |
mesa 0.9
Diffstat (limited to 'abs/core/mesa/mesa-8.0.3-llvm-3.1-fixes.patch')
-rw-r--r-- | abs/core/mesa/mesa-8.0.3-llvm-3.1-fixes.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/abs/core/mesa/mesa-8.0.3-llvm-3.1-fixes.patch b/abs/core/mesa/mesa-8.0.3-llvm-3.1-fixes.patch deleted file mode 100644 index a567b59..0000000 --- a/abs/core/mesa/mesa-8.0.3-llvm-3.1-fixes.patch +++ /dev/null @@ -1,46 +0,0 @@ -diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp -index a50a51d..f1bb4d9 100644 ---- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp -+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp -@@ -235,7 +235,24 @@ lp_disassemble(const void* func) - int AsmPrinterVariant = AsmInfo->getAssemblerDialect(); - #endif - --#if HAVE_LLVM >= 0x0300 -+#if HAVE_LLVM >= 0x0301 -+ OwningPtr<const MCRegisterInfo> MRI(T->createMCRegInfo(Triple)); -+ if (!MRI) { -+ debug_printf("error: no register info for target %s\n", Triple.c_str()); -+ return; -+ } -+ -+ OwningPtr<const MCInstrInfo> MII(T->createMCInstrInfo()); -+ if (!MII) { -+ debug_printf("error: no instruction info for target %s\n", Triple.c_str()); -+ return; -+ } -+#endif -+ -+#if HAVE_LLVM >= 0x0301 -+ OwningPtr<MCInstPrinter> Printer( -+ T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *MII, *MRI, *STI)); -+#elif HAVE_LLVM == 0x0300 - OwningPtr<MCInstPrinter> Printer( - T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *STI)); - #elif HAVE_LLVM >= 0x0208 -diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -index fe7616b..68f8808 100644 ---- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -+++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp -@@ -62,7 +62,11 @@ - extern "C" void - lp_register_oprofile_jit_event_listener(LLVMExecutionEngineRef EE) - { -+#if HAVE_LLVM >= 0x0301 -+ llvm::unwrap(EE)->RegisterJITEventListener(llvm::JITEventListener::createOProfileJITEventListener()); -+#else - llvm::unwrap(EE)->RegisterJITEventListener(llvm::createOProfileJITEventListener()); -+#endif - } - - |