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:
Jan Vesely 2015-01-25 16:11:40 -05:00 committed by Tom Stellard
parent 4b94c3fc31
commit 9cbb9165b9

View file

@ -331,7 +331,11 @@ namespace {
llvm::PassManagerBuilder PMB;
PMB.OptLevel = optimization_level;
#if HAVE_LLVM < 0x0307
PMB.LibraryInfo = new llvm::TargetLibraryInfo(
#else
PMB.LibraryInfo = new llvm::TargetLibraryInfoImpl(
#endif
llvm::Triple(mod->getTargetTriple()));
PMB.populateModulePassManager(PM);
PM.run(*mod);