aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-09 17:57:24 +0000
committerOwen Anderson <resistor@mac.com>2009-07-09 17:57:24 +0000
commitd1474d09cbe5fdeec8ba0d6c6b52f316f3422532 (patch)
treefcc789dd22936e2ec5ec7e875d7e02f0757e6c6f /utils/TableGen
parent80c8c3178276d0988c0129fb235f5b08a2e4f66d (diff)
downloadexternal_llvm-d1474d09cbe5fdeec8ba0d6c6b52f316f3422532.zip
external_llvm-d1474d09cbe5fdeec8ba0d6c6b52f316f3422532.tar.gz
external_llvm-d1474d09cbe5fdeec8ba0d6c6b52f316f3422532.tar.bz2
Thread LLVMContext through MVT and related parts of SDISel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75153 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r--utils/TableGen/CallingConvEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/CallingConvEmitter.cpp b/utils/TableGen/CallingConvEmitter.cpp
index a14be0b..0746a2f 100644
--- a/utils/TableGen/CallingConvEmitter.cpp
+++ b/utils/TableGen/CallingConvEmitter.cpp
@@ -163,12 +163,12 @@ void CallingConvEmitter::EmitAction(Record *Action,
O << Size << ", ";
else
O << "\n" << IndentStr << " State.getTarget().getTargetData()"
- "->getTypeAllocSize(LocVT.getTypeForMVT()), ";
+ "->getTypeAllocSize(LocVT.getTypeForMVT(*State.getContext())), ";
if (Align)
O << Align;
else
O << "\n" << IndentStr << " State.getTarget().getTargetData()"
- "->getABITypeAlignment(LocVT.getTypeForMVT())";
+ "->getABITypeAlignment(LocVT.getTypeForMVT(*State.getContext()))";
O << ");\n" << IndentStr
<< "State.addLoc(CCValAssign::getMem(ValNo, ValVT, Offset"
<< Counter << ", LocVT, LocInfo));\n";