clover: fix building with llvm-3.4 since rev191922
authorLaurent Carlier <lordheavym@gmail.com>
Fri, 4 Oct 2013 19:22:30 +0000 (21:22 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 7 Oct 2013 15:41:02 +0000 (08:41 -0700)
http://llvm.org/viewvc/llvm-project?view=revision&revision=191922

src/gallium/state_trackers/clover/llvm/invocation.cpp

index e6cd41599c32720d921149264e31ccc17156f206..bdc3aee670c570b2c3a5f0b1049f0ae0b14798e3 100644 (file)
@@ -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);