gallivm: attach DataLayout to module too, not just pass manager.
authorRafael Ávila de Espíndola <rafael.espindola@gmail.com>
Tue, 16 Sep 2014 01:46:02 +0000 (03:46 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 16 Sep 2014 01:50:32 +0000 (03:50 +0200)
commitf6e71ff9eb44ed87bd6ac5cc705076d1a789d0ea
tree8e282d334e5fd4846dabc109886e740c8ce5727c
parent145fef9636a7f6a1b371861a887657cef21bdb3d
gallivm: attach DataLayout to module too, not just pass manager.

It looks like it was possible to attach it to both for a long time, however
since llvm r217548 attaching it to just the pass manager is no longer
sufficient and causes bugs (see http://llvm.org/bugs/show_bug.cgi?id=20903).

Tested-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_init.c