summaryrefslogtreecommitdiff
path: root/docs/ProgrammersManual.html
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-03 22:17:25 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-03 22:17:25 +0000
commit58c2ac0e4159175a8193b7a164f8c18470882f97 (patch)
tree33cfb06147c9c09a41240a40fb7367cd2d42e44e /docs/ProgrammersManual.html
parent3945b7cfce6cc58163e66c9524bc1d559df1d2d7 (diff)
downloadllvm-58c2ac0e4159175a8193b7a164f8c18470882f97.tar.gz
llvm-58c2ac0e4159175a8193b7a164f8c18470882f97.tar.bz2
llvm-58c2ac0e4159175a8193b7a164f8c18470882f97.tar.xz
Change PointerType::get -> getUnqual
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ProgrammersManual.html')
-rw-r--r--docs/ProgrammersManual.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html
index ba8a38be9a..e859098d15 100644
--- a/docs/ProgrammersManual.html
+++ b/docs/ProgrammersManual.html
@@ -1956,7 +1956,7 @@ AllocaInst* instToReplace = ...;
BasicBlock::iterator ii(instToReplace);
ReplaceInstWithValue(instToReplace-&gt;getParent()-&gt;getInstList(), ii,
- Constant::getNullValue(PointerType::get(Type::Int32Ty)));
+ Constant::getNullValue(PointerType::getUnqual(Type::Int32Ty)));
</pre></div></li>
<li><tt>ReplaceInstWithInst</tt>
@@ -2091,7 +2091,7 @@ To build this, use the following LLVM APIs:
// <i>Create the initial outer struct</i>
<a href="#PATypeHolder">PATypeHolder</a> StructTy = OpaqueType::get();
std::vector&lt;const Type*&gt; Elts;
-Elts.push_back(PointerType::get(StructTy));
+Elts.push_back(PointerType::getUnqual(StructTy));
Elts.push_back(Type::Int32Ty);
StructType *NewSTy = StructType::get(Elts);