Commit 72465fcf authored by Laurent Carlier's avatar Laurent Carlier Committed by Tom Stellard

clover: fix building with llvm-3.4 since rev191922

http://llvm.org/viewvc/llvm-project?view=revision&revision=191922
parent e58dd465
......@@ -278,8 +278,12 @@ 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
// Run link time optimizations
Builder.OptLevel = 2;
Builder.populateLTOPassManager(PM, false, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment