From 10d64b95a121e69dbd70f7ed9fa660085f13f779 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Mon, 3 Dec 2007 01:52:52 +0000 Subject: [PATCH] Type::IntTy hasn't existed for a while. Just sub in Type::Int32Ty. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44526 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ProgrammersManual.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 792dbf0e529..66bca9b7757 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -1742,7 +1742,7 @@ parameters. For example, an AllocaInst only requires a
-AllocaInst* ai = new AllocaInst(Type::IntTy);
+AllocaInst* ai = new AllocaInst(Type::Int32Ty);
 
@@ -1770,7 +1770,7 @@ used as some kind of index by some other code. To accomplish this, I place an
-AllocaInst* pa = new AllocaInst(Type::IntTy, 0, "indexLoc");
+AllocaInst* pa = new AllocaInst(Type::Int32Ty, 0, "indexLoc");
 
@@ -1922,7 +1922,7 @@ AllocaInst* instToReplace = ...; BasicBlock::iterator ii(instToReplace); ReplaceInstWithValue(instToReplace->getParent()->getInstList(), ii, - Constant::getNullValue(PointerType::get(Type::IntTy))); + Constant::getNullValue(PointerType::get(Type::Int32Ty)));
  • ReplaceInstWithInst @@ -1937,7 +1937,7 @@ AllocaInst* instToReplace = ...; BasicBlock::iterator ii(instToReplace); ReplaceInstWithInst(instToReplace->getParent()->getInstList(), ii, - new AllocaInst(Type::IntTy, 0, "ptrToReplacedInt")); + new AllocaInst(Type::Int32Ty, 0, "ptrToReplacedInt"));
  • @@ -2056,7 +2056,7 @@ To build this, use the following LLVM APIs: PATypeHolder StructTy = OpaqueType::get(); std::vector<const Type*> Elts; Elts.push_back(PointerType::get(StructTy)); -Elts.push_back(Type::IntTy); +Elts.push_back(Type::Int32Ty); StructType *NewSTy = StructType::get(Elts); // At this point, NewSTy = "{ opaque*, i32 }". Tell VMCore that -- 2.34.1