mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 18:20:39 +00:00
now that we can pass ranges into CallInst ctors, eliminate vector heap traffic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -669,7 +669,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
|
|||||||
const FunctionType *FTy = dyn_cast<FunctionType>(PTy->getElementType());
|
const FunctionType *FTy = dyn_cast<FunctionType>(PTy->getElementType());
|
||||||
if (FTy == 0) error("Call to non function pointer value!");
|
if (FTy == 0) error("Call to non function pointer value!");
|
||||||
|
|
||||||
std::vector<Value *> Params;
|
SmallVector<Value *, 8> Params;
|
||||||
if (!FTy->isVarArg()) {
|
if (!FTy->isVarArg()) {
|
||||||
FunctionType::param_iterator It = FTy->param_begin();
|
FunctionType::param_iterator It = FTy->param_begin();
|
||||||
|
|
||||||
@@ -720,7 +720,7 @@ void BytecodeReader::ParseInstruction(SmallVector<unsigned, 8> &Oprnds,
|
|||||||
if (FTy == 0)
|
if (FTy == 0)
|
||||||
error("Invoke to non function pointer value!");
|
error("Invoke to non function pointer value!");
|
||||||
|
|
||||||
std::vector<Value *> Params;
|
SmallVector<Value *, 8> Params;
|
||||||
BasicBlock *Normal, *Except;
|
BasicBlock *Normal, *Except;
|
||||||
unsigned CallingConv = Oprnds.back();
|
unsigned CallingConv = Oprnds.back();
|
||||||
Oprnds.pop_back();
|
Oprnds.pop_back();
|
||||||
|
|||||||
Reference in New Issue
Block a user