[pkg-d-commits] [ldc] 11/14: Fix LLVM 4.0 build.

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:35:55 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v0.17.2
in repository ldc.

commit 0818f162fb5318360a968f5c13bd22c83e8266e1
Author: Johan Engelen <jbc.engelen at gmail.com>
Date:   Fri Jul 29 15:32:28 2016 +0200

    Fix LLVM 4.0 build.
    
    (cherry picked from commit 4fede9467fcef19b7c671fa5635c1e3304703590)
---
 driver/main.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/driver/main.cpp b/driver/main.cpp
index edc262c..3944aaa 100644
--- a/driver/main.cpp
+++ b/driver/main.cpp
@@ -571,7 +571,9 @@ static void initializePasses() {
 #if LDC_LLVM_VER < 308
   initializeIPA(Registry);
 #endif
-#if LDC_LLVM_VER >= 306
+#if LDC_LLVM_VER >= 400
+  initializeRewriteSymbolsLegacyPassPass(Registry);
+#elif LDC_LLVM_VER >= 306
   initializeRewriteSymbolsPass(Registry);
 #endif
 #if LDC_LLVM_VER >= 307

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list