Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 313071 Details for
Bug 417363
media-libs/mesa-8.0.2 does not compile against llvm-3.1
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Consolidated patches from upstream
llvm31-fixes.patch (text/plain), 1.81 KB, created by
Brandon Penglase
on 2012-05-26 02:18:56 UTC
(
hide
)
Description:
Consolidated patches from upstream
Filename:
MIME Type:
Creator:
Brandon Penglase
Created:
2012-05-26 02:18:56 UTC
Size:
1.81 KB
patch
obsolete
>--- src/gallium/auxiliary/gallivm/lp_bld_debug.cpp 2012-03-21 11:54:27.000000000 -0400 >+++ src/gallium/auxiliary/gallivm/lp_bld_debug.cpp.mod 2012-05-25 22:13:11.808747221 -0400 >@@ -54,6 +54,10 @@ > #include <llvm/MC/MCInstPrinter.h> > #endif /* HAVE_LLVM >= 0x0207 */ > >+#if HAVE_LLVM >= 0x0301 >+#include <llvm/MC/MCRegisterInfo.h> >+#endif /* HAVE_LLVM >= 0x0301 */ >+ > #include "util/u_math.h" > #include "util/u_debug.h" > >@@ -235,7 +239,23 @@ 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 > >--- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp 2012-03-21 11:54:27.000000000 -0400 >+++ src/gallium/auxiliary/gallivm/lp_bld_misc.cpp.mod 2012-05-25 22:08:02.150281687 -0400 >@@ -62,7 +62,11 @@ > extern "C" void > lp_register_oprofile_jit_event_listener(LLVMExecutionEngineRef EE) > { >- llvm::unwrap(EE)->RegisterJITEventListener(llvm::createOProfileJITEventListener()); >+ #if HAVE_LLVM >= 0x0301 >+ llvm::unwrap(EE)->RegisterJITEventListener(llvm::JITEventListener::createOProfileJITEventListener()); >+ #else >+ llvm::unwrap(EE)->RegisterJITEventListener(llvm::createOProfileJITEventListener()); >+ #endif > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 417363
: 313071