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)
commite10581ac39a29acc3edd4b68f98b6f2e28e90b6e
treebd660785512159e55b00a05ef5964efeafb1b87d
parent341f17d0f036e838e138d4f980cf41537cc56df0
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230591 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IRBuilder.h
lib/IR/IRBuilder.cpp
lib/Transforms/Scalar/PlaceSafepoints.cpp
test/Transforms/PlaceSafepoints/basic.ll