Browse files

follow raw_fd_ostream api change

git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/llvm26@2629 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information...
1 parent 7d8161a commit 5486fda1c6c81d0a1da2f3e39b67b003952616b0 @lrz lrz committed Sep 24, 2009
Showing with 2 additions and 4 deletions.
  1. +2 −4 vm.cpp
View
6 vm.cpp
@@ -208,14 +208,12 @@ RoxorCore::RoxorCore(void)
bs_parser = NULL;
- llvm_start_multithreaded();
+ //llvm_start_multithreaded();
emp = new ExistingModuleProvider(RoxorCompiler::module);
jmm = new RoxorJITManager;
InitializeNativeTarget();
- //LLVMInitializeX86TargetInfo();
- //LLVMInitializeX86Target();
std::string err;
ee = ExecutionEngine::createJIT(emp, &err, jmm, CodeGenOpt::None, false);
@@ -4751,7 +4749,7 @@ rb_vm_aot_compile(NODE *node)
// Dump the bitcode.
std::string err;
- raw_fd_ostream out(output, err, raw_fd_ostream::F_Binary);
+ raw_fd_ostream out(output, true, true, err);
if (!err.empty()) {
fprintf(stderr, "error when opening the output bitcode file: %s\n",
err.c_str());

0 comments on commit 5486fda

Please sign in to comment.