summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb9e03a65cdb5d7f529e4cb3d8ba781b3a2d2fc11 (patch)
treebcab33dc6d9e5290df6d44ea7c694b596575fbb4 /llvm/docs/ProgrammersManual.html
parent8517dfad9ddeba2c14d58a263c779d94e0935a93 (diff)
downloadbcm5719-llvm-b9e03a65cdb5d7f529e4cb3d8ba781b3a2d2fc11.tar.gz
bcm5719-llvm-b9e03a65cdb5d7f529e4cb3d8ba781b3a2d2fc11.zip
Change PointerType::get -> getUnqual
llvm-svn: 57032
Diffstat (limited to 'llvm/docs/ProgrammersManual.html')
-rw-r--r--llvm/docs/ProgrammersManual.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/ProgrammersManual.html b/llvm/docs/ProgrammersManual.html
index ba8a38be9a9..e859098d154 100644
--- a/llvm/docs/ProgrammersManual.html
+++ b/llvm/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);
OpenPOWER on IntegriCloud