DataLayoutPass was removed
This commit is contained in:
@@ -1406,11 +1406,11 @@ Module::writeObjectFileOrAssembly(llvm::TargetMachine *targetMachine,
|
||||
pm.add(new llvm::DataLayout(*g->target->getDataLayout()));
|
||||
#elif defined(LLVM_3_5)
|
||||
pm.add(new llvm::DataLayoutPass(*g->target->getDataLayout()));
|
||||
#else // LLVM 3.6+
|
||||
#elif defined(LLVM_3_6)
|
||||
llvm::DataLayoutPass *dlp= new llvm::DataLayoutPass();
|
||||
dlp->doInitialization(*module);
|
||||
pm.add(dlp);
|
||||
#endif
|
||||
#endif // LLVM 3.7+ doesn't have DataLayoutPass anymore.
|
||||
|
||||
llvm::formatted_raw_ostream fos(of->os());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user