simplify by using CallSite constructors; virtually eliminates CallSite::get from the tree

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Gabor Greif
2010-07-28 22:50:26 +00:00
parent 826c148aa5
commit 7d3056b160
9 changed files with 26 additions and 26 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ namespace {
Instruction *User = dyn_cast<Instruction>(*UI);
if (!User) continue;
CallSite CS = CallSite::get(User);
if (!CS.getInstruction()) continue;
CallSite CS(cast<Value>(User));
if (!CS) continue;
for (CallSite::arg_iterator AI = CS.arg_begin(),
E = CS.arg_end(); AI != E; ++AI) {