diff options
| author | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-17 01:12:55 +0000 |
|---|---|---|
| committer | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-17 01:12:55 +0000 |
| commit | edf0788758c1245d40c3355914ddb310117f457b (patch) | |
| tree | d9a6df96cce2d9fed1ee681eb546e5a02126bbe2 /llvm/lib/Target/MSIL/MSILWriter.cpp | |
| parent | 77560fbde7cbb2d2d6cdf39c9f3ad4feb725daaf (diff) | |
| download | bcm5719-llvm-edf0788758c1245d40c3355914ddb310117f457b.tar.gz bcm5719-llvm-edf0788758c1245d40c3355914ddb310117f457b.zip | |
Change the PointerType api for creating pointer types. The old functionality of PointerType::get() has become PointerType::getUnqual(), which returns a pointer in the generic address space. The new prototype of PointerType::get() requires both a type and an address space.
llvm-svn: 45082
Diffstat (limited to 'llvm/lib/Target/MSIL/MSILWriter.cpp')
| -rw-r--r-- | llvm/lib/Target/MSIL/MSILWriter.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/MSIL/MSILWriter.cpp b/llvm/lib/Target/MSIL/MSILWriter.cpp index 87107d8908d..cc4739a8b0c 100644 --- a/llvm/lib/Target/MSIL/MSILWriter.cpp +++ b/llvm/lib/Target/MSIL/MSILWriter.cpp @@ -783,7 +783,7 @@ void MSILWriter::printIntrinsicCall(const IntrinsicInst* Inst) { // Save as pointer type "void*" printValueLoad(Inst->getOperand(1)); printSimpleInstruction("ldloca",Name.c_str()); - printIndirectSave(PointerType::get(IntegerType::get(8))); + printIndirectSave(PointerType::getUnqual(IntegerType::get(8))); break; case Intrinsic::vaend: // Close argument list handle. @@ -1002,7 +1002,8 @@ void MSILWriter::printVAArgInstruction(const VAArgInst* Inst) { printSimpleInstruction("call", "instance typedref [mscorlib]System.ArgIterator::GetNextArg()"); printSimpleInstruction("refanyval","void*"); - std::string Name = "ldind."+getTypePostfix(PointerType::get(IntegerType::get(8)),false); + std::string Name = + "ldind."+getTypePostfix(PointerType::getUnqual(IntegerType::get(8)),false); printSimpleInstruction(Name.c_str()); } @@ -1217,7 +1218,7 @@ void MSILWriter::printLocalVariables(const Function& F) { const AllocaInst* AI = dyn_cast<AllocaInst>(&*I); if (AI && !isa<GlobalVariable>(AI)) { // Local variable allocation. - Ty = PointerType::get(AI->getAllocatedType()); + Ty = PointerType::getUnqual(AI->getAllocatedType()); Name = getValueName(AI); Out << "\t.locals (" << getTypeName(Ty) << Name << ")\n"; } else if (I->getType()!=Type::VoidTy) { |

