aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index e0b6ac63bb..e809e31a62 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/lib/CodeGen/MachineFunction.cpp
@@ -85,7 +85,7 @@ ComputeMaxOptionalArgsSize(const TargetMachine& target, const Function *F,
"compute MaxOptionalArgsSize");
sizeForThisCall = 0;
for (unsigned i = 0; i < numOperands; ++i)
- sizeForThisCall += target.findOptimalStorageSize(callInst->
+ sizeForThisCall += target.DataLayout.getTypeSize(callInst->
getOperand(i)->getType());
}
@@ -190,7 +190,7 @@ MachineCodeForMethod::allocateSpilledValue(const TargetMachine& target,
"Size of reg spills area has been used to compute an offset so "
"no more register spill slots should be allocated!");
- unsigned int size = target.findOptimalStorageSize(type);
+ unsigned int size = target.DataLayout.getTypeSize(type);
unsigned char align = target.DataLayout.getTypeAlignment(type);
bool growUp;