clover: fix build with LLVM 3.4
authorAaron Watry <awatry@gmail.com>
Fri, 1 Nov 2013 15:25:43 +0000 (10:25 -0500)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 4 Nov 2013 16:51:57 +0000 (08:51 -0800)
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>
src/gallium/state_trackers/clover/llvm/invocation.cpp

index 4ae496ffb2118449add8a0e3d25bd3a5f5ad6ae7..3f50317ad20479abe9d97b165588c715a17337f1 100644 (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);
    }