Mesa (master): clover: fix build with LLVM 3.4

Tom Stellard tstellar at kemper.freedesktop.org
Mon Nov 4 16:52:54 UTC 2013


Module: Mesa
Branch: master
Commit: 1b2c6cd205bc35f0409ccf055a77e8ca6eab0db3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b2c6cd205bc35f0409ccf055a77e8ca6eab0db3

Author: Aaron Watry <awatry at gmail.com>
Date:   Fri Nov  1 10:25:43 2013 -0500

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 at fireburn.co.uk>
Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

---

 .../state_trackers/clover/llvm/invocation.cpp      |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp
index 4ae496f..3f50317 100644
--- a/src/gallium/state_trackers/clover/llvm/invocation.cpp
+++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp
@@ -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);
    }
 




More information about the mesa-commit mailing list