[code generation] bugfix in single buffering

This commit is contained in:
Philippe Tillet
2019-03-26 15:55:48 -07:00
parent 8d35c98920
commit 9d6fc1c051
13 changed files with 135 additions and 41 deletions

View File

@@ -109,6 +109,10 @@ void module::compile_llvm_module(llvm::Module* module, const std::string& triple
llvm::SmallVectorImpl<char> &buffer,
std::vector<std::string> paths) {
init_llvm();
// llvm::legacy::PassManager passes;
// passes.add(llvm::createPrintModulePass(llvm::outs()));
// passes.add(llvm::createVerifierPass());
// passes.run(*module);
// create machine
module->setTargetTriple(triple);
std::string error;