diff gen/irstate.cpp @ 1013:8c73ff5f69e0

Use llvm::CallSite instead of custom CallOrInvoke class.
author Frits van Bommel <fvbommel wxs.nl>
date Sat, 28 Feb 2009 22:16:52 +0100
parents 2667e3a145be
children f99a3b393c03
line wrap: on
line diff
--- a/gen/irstate.cpp	Sat Feb 28 19:58:30 2009 +0100
+++ b/gen/irstate.cpp	Sat Feb 28 22:16:52 2009 +0100
@@ -121,20 +121,20 @@
     return !scopebb()->empty() && scopebb()->back().isTerminator();
 }
 
-CallOrInvoke* IRState::CreateCallOrInvoke(LLValue* Callee, const char* Name)
+LLCallSite IRState::CreateCallOrInvoke(LLValue* Callee, const char* Name)
 {
     LLSmallVector<LLValue*, 1> args;
     return CreateCallOrInvoke(Callee, args.begin(), args.end(), Name);
 }
 
-CallOrInvoke* IRState::CreateCallOrInvoke(LLValue* Callee, LLValue* Arg1, const char* Name)
+LLCallSite IRState::CreateCallOrInvoke(LLValue* Callee, LLValue* Arg1, const char* Name)
 {
     LLSmallVector<LLValue*, 1> args;
     args.push_back(Arg1);
     return CreateCallOrInvoke(Callee, args.begin(), args.end(), Name);
 }
 
-CallOrInvoke* IRState::CreateCallOrInvoke2(LLValue* Callee, LLValue* Arg1, LLValue* Arg2, const char* Name)
+LLCallSite IRState::CreateCallOrInvoke2(LLValue* Callee, LLValue* Arg1, LLValue* Arg2, const char* Name)
 {
     LLSmallVector<LLValue*, 2> args;
     args.push_back(Arg1);
@@ -142,7 +142,7 @@
     return CreateCallOrInvoke(Callee, args.begin(), args.end(), Name);
 }
 
-CallOrInvoke* IRState::CreateCallOrInvoke3(LLValue* Callee, LLValue* Arg1, LLValue* Arg2, LLValue* Arg3, const char* Name)
+LLCallSite IRState::CreateCallOrInvoke3(LLValue* Callee, LLValue* Arg1, LLValue* Arg2, LLValue* Arg3, const char* Name)
 {
     LLSmallVector<LLValue*, 3> args;
     args.push_back(Arg1);
@@ -151,7 +151,7 @@
     return CreateCallOrInvoke(Callee, args.begin(), args.end(), Name);
 }
 
-CallOrInvoke* IRState::CreateCallOrInvoke4(LLValue* Callee, LLValue* Arg1, LLValue* Arg2,  LLValue* Arg3, LLValue* Arg4, const char* Name)
+LLCallSite IRState::CreateCallOrInvoke4(LLValue* Callee, LLValue* Arg1, LLValue* Arg2,  LLValue* Arg3, LLValue* Arg4, const char* Name)
 {
     LLSmallVector<LLValue*, 4> args;
     args.push_back(Arg1);