We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed6e0a4 commit 9088152Copy full SHA for 9088152
gen/module.cpp
@@ -653,7 +653,11 @@ llvm::Module* Module::genLLVMModule(llvm::LLVMContext& context)
653
654
// set final data layout
655
ir.module->setDataLayout(gDataLayout->getStringRepresentation());
656
+#if LDC_LLVM_VER >= 307
657
+ IF_LOG Logger::cout() << "Final data layout: " << ir.module->getDataLayout().getStringRepresentation() << '\n';
658
+#else
659
IF_LOG Logger::cout() << "Final data layout: " << ir.module->getDataLayout() << '\n';
660
+#endif
661
662
// handle invalid 'objectø module
663
if (!ClassDeclaration::object) {
0 commit comments