mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
LLVM 3.7: DataLayoutPass is gone.
DataLayout is now non-optional at the module. Therefore there is no need for a separate DataLayoutPass.
This commit is contained in:
parent
192583d336
commit
66bf03b96b
3 changed files with 23 additions and 4 deletions
|
@ -356,7 +356,12 @@ bool ldc_optimize_module(llvm::Module *M)
|
|||
#endif
|
||||
|
||||
// Add an appropriate DataLayout instance for this module.
|
||||
#if LDC_LLVM_VER >= 306
|
||||
#if LDC_LLVM_VER >= 307
|
||||
// The DataLayout is already set at the module (in module.cpp,
|
||||
// method Module::genLLVMModule())
|
||||
// FIXME: Introduce new command line switch default-data-layout to
|
||||
// override the module data layout
|
||||
#elif LDC_LLVM_VER == 306
|
||||
mpm.add(new DataLayoutPass());
|
||||
#elif LDC_LLVM_VER == 305
|
||||
const DataLayout *DL = M->getDataLayout();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue