clover: fix building with llvm-3.4 since rev191922
http://llvm.org/viewvc/llvm-project?view=revision&revision=191922
This commit is contained in:

committed by
Tom Stellard

parent
e58dd465f0
commit
72465fcf57
@@ -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);
|
||||
|
Reference in New Issue
Block a user