simplify: CallSite::get --> CallSite constructor
authorGabor Greif <ggreif@gmail.com>
Tue, 27 Jul 2010 15:02:37 +0000 (15:02 +0000)
committerGabor Greif <ggreif@gmail.com>
Tue, 27 Jul 2010 15:02:37 +0000 (15:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109506 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/InlineFunction.cpp

index 598e7d29e3781a5aa6e8a52e9ccc3576a08a211a..b7677b5a3c39f307e118bc4d7372e97655af1baa 100644 (file)
@@ -215,12 +215,12 @@ static void UpdateCallGraphAfterInlining(CallSite CS,
     if (I->second->getFunction() == 0)
       if (Function *F = CallSite(NewCall).getCalledFunction()) {
         // Indirect call site resolved to direct call.
-        CallerNode->addCalledFunction(CallSite::get(NewCall), CG[F]);
-        
+        CallerNode->addCalledFunction(CallSite(NewCall), CG[F]);
+
         continue;
       }
-    
-    CallerNode->addCalledFunction(CallSite::get(NewCall), I->second);
+
+    CallerNode->addCalledFunction(CallSite(NewCall), I->second);
   }
   
   // Update the call graph by deleting the edge from Callee to Caller.  We must