[pkg-d-commits] [ldc] 08/14: LLVM 3.9: DataLayout.getLargestLegalIntTypeSize() was renamed.
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:35:54 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 738c6ab1df5f7f0ea77e739ac58ad1c7e3797999
Author: Kai Nacke <kai at redstar.de>
Date: Thu May 19 22:56:33 2016 +0200
LLVM 3.9: DataLayout.getLargestLegalIntTypeSize() was renamed.
Fixes a compile error with LLVM 3.9. Original by Rainer.
(cherry picked from commit ffc07566b1321c4587f6f2b5bf7bca53744238ce)
---
driver/targetmachine.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/driver/targetmachine.cpp b/driver/targetmachine.cpp
index 0aa9281..a7eb2e7 100644
--- a/driver/targetmachine.cpp
+++ b/driver/targetmachine.cpp
@@ -96,7 +96,11 @@ MipsABI::Type getMipsABI() {
#endif
if (dl.getPointerSizeInBits() == 64)
return MipsABI::N64;
+#if LDC_LLVM_VER >= 309
+ else if (dl.getLargestLegalIntTypeSizeInBits() == 64)
+#else
else if (dl.getLargestLegalIntTypeSize() == 64)
+#endif
return MipsABI::N32;
else
return MipsABI::O32;
--
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