diff --git a/cbackend.cpp b/cbackend.cpp index d5772b2c..6fedf1f3 100644 --- a/cbackend.cpp +++ b/cbackend.cpp @@ -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