clover: fix build with LLVM 3.4

dso_list was added as an argument for createInternalizePass in 3.4, and then
it was removed again in the same llvm version.

Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
Aaron Watry 2013-11-01 10:25:43 -05:00 committed by Tom Stellard
parent 9fc41e2eea
commit 1b2c6cd205

View file

@ -267,12 +267,7 @@ namespace {
llvm::Function *kernel = *I;
export_list.push_back(kernel->getName().data());
}
#if HAVE_LLVM < 0x0304
PM.add(llvm::createInternalizePass(export_list));
#else
std::vector<const char*> dso_list;
PM.add(llvm::createInternalizePass(export_list, dso_list));
#endif
PM.run(*mod);
}