Tracking ToT changes: changes in MCContext interface

This commit is contained in:
Dmitry Babokin
2013-06-18 22:13:14 +04:00
parent 95fcdc36ee
commit c4d404b15f

View File

@@ -2188,7 +2188,11 @@ bool CWriter::doInitialization(llvm::Module &M) {
#endif
TAsm = new CBEMCAsmInfo();
MRI = new llvm::MCRegisterInfo();
#if defined(LLVM_3_4)
TCtx = new llvm::MCContext(TAsm, MRI, NULL);
#else
TCtx = new llvm::MCContext(*TAsm, *MRI, NULL);
#endif
//Mang = new llvm::Mangler(*TCtx, *TD);
// Keep track of which functions are static ctors/dtors so they can have