PlaceSafepoints: use IRBuilder helpers
authorRamkumar Ramachandra <artagnon@gmail.com>
Thu, 26 Feb 2015 00:35:56 +0000 (00:35 +0000)
committerRamkumar Ramachandra <artagnon@gmail.com>
Thu, 26 Feb 2015 00:35:56 +0000 (00:35 +0000)
commit3408f3e296ccad04b7a3d0406bf5da1bca0bf40e
tree32eaa165215f1eb386568da40cf31622321a23f9
parentd6aab731e086374504f41469a61a142592561430
PlaceSafepoints: use IRBuilder helpers

Use the IRBuilder helpers for gc.statepoint and gc.result, instead of
coding the construction by hand. Note that the gc.statepoint IRBuilder
handles only CallInst, not InvokeInst; retain that part of hand-coding.

Differential Revision: http://reviews.llvm.org/D7518

llvm-svn: 230591
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/IR/IRBuilder.cpp
llvm/lib/Transforms/Scalar/PlaceSafepoints.cpp
llvm/test/Transforms/PlaceSafepoints/basic.ll