mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 13:18:04 +02:00
clover: Fix build with llvm after r226981
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88783 Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
This commit is contained in:
parent
4b94c3fc31
commit
9cbb9165b9
1 changed files with 4 additions and 0 deletions
|
|
@ -331,7 +331,11 @@ namespace {
|
||||||
|
|
||||||
llvm::PassManagerBuilder PMB;
|
llvm::PassManagerBuilder PMB;
|
||||||
PMB.OptLevel = optimization_level;
|
PMB.OptLevel = optimization_level;
|
||||||
|
#if HAVE_LLVM < 0x0307
|
||||||
PMB.LibraryInfo = new llvm::TargetLibraryInfo(
|
PMB.LibraryInfo = new llvm::TargetLibraryInfo(
|
||||||
|
#else
|
||||||
|
PMB.LibraryInfo = new llvm::TargetLibraryInfoImpl(
|
||||||
|
#endif
|
||||||
llvm::Triple(mod->getTargetTriple()));
|
llvm::Triple(mod->getTargetTriple()));
|
||||||
PMB.populateModulePassManager(PM);
|
PMB.populateModulePassManager(PM);
|
||||||
PM.run(*mod);
|
PM.run(*mod);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue