Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gfx committed Jul 19, 2012
1 parent e772678 commit 7c980d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hello.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ int main()

// puts関数をよびだす
builder.CreateCall(putsFunc, helloWorld);
// return;
builder.CreateRetVoid();
// return 0;
builder.CreateRet(llvm::ConstantInt::get(builder.getInt32Ty(), 0));

// できたアセンブリを標準出力にだす
// できたアセンブリを標準エラー出力にだす
module->dump();
}

0 comments on commit 7c980d8

Please sign in to comment.