[Mesa-dev] [PATCH] gallivm: Fix build against LLVM SVN >= r302589
Kai Wasserbäch
kai at dev.carbon-project.org
Wed May 10 14:31:14 UTC 2017
Michel Dänzer wrote on 10.05.2017 10:27:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> deregisterEHFrames doesn't take any parameters anymore.
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
LGTM, CC stable?
> ---
> src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> index 2a388cbfaf..0e4a531089 100644
> --- a/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> +++ b/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp
> @@ -342,14 +342,20 @@ class DelegatingJITMemoryManager : public BaseMemoryManager {
> virtual void registerEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) {
> mgr()->registerEHFrames(Addr, LoadAddr, Size);
> }
> - virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) {
> - mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
> - }
> #else
> virtual void registerEHFrames(llvm::StringRef SectionData) {
> mgr()->registerEHFrames(SectionData);
> }
> #endif
> +#if HAVE_LLVM >= 0x0500
> + virtual void deregisterEHFrames() {
> + mgr()->deregisterEHFrames();
> + }
> +#elif HAVE_LLVM >= 0x0304
> + virtual void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size) {
> + mgr()->deregisterEHFrames(Addr, LoadAddr, Size);
> + }
> +#endif
> virtual void *getPointerToNamedFunction(const std::string &Name,
> bool AbortOnFailure=true) {
> return mgr()->getPointerToNamedFunction(Name, AbortOnFailure);
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170510/86941f4c/attachment.sig>
More information about the mesa-dev
mailing list