summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl3.html
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-06-10 01:52:17 +0000
committerGabor Greif <ggreif@gmail.com>2008-06-10 01:52:17 +0000
commit8030749993c49713c7eb32fcd0b8e6cbd7e77b77 (patch)
tree5c62870e9c5865bc6bdccade82f21e9133289d7a /llvm/docs/tutorial/LangImpl3.html
parent406fb231f8f414b0fe0ac842e2262eb9c9c5ccf5 (diff)
downloadbcm5719-llvm-8030749993c49713c7eb32fcd0b8e6cbd7e77b77.tar.gz
bcm5719-llvm-8030749993c49713c7eb32fcd0b8e6cbd7e77b77.zip
adjust calls to ConstantFP::get to new API
llvm-svn: 52165
Diffstat (limited to 'llvm/docs/tutorial/LangImpl3.html')
-rw-r--r--llvm/docs/tutorial/LangImpl3.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/tutorial/LangImpl3.html b/llvm/docs/tutorial/LangImpl3.html
index 39a672dc868..2acd3ddb531 100644
--- a/llvm/docs/tutorial/LangImpl3.html
+++ b/llvm/docs/tutorial/LangImpl3.html
@@ -159,7 +159,7 @@ we'll do numeric literals:</p>
<div class="doc_code">
<pre>
Value *NumberExprAST::Codegen() {
- return ConstantFP::get(Type::DoubleTy, APFloat(Val));
+ return ConstantFP::get(APFloat(Val));
}
</pre>
</div>
@@ -1033,7 +1033,7 @@ static std::map&lt;std::string, Value*&gt; NamedValues;
Value *ErrorV(const char *Str) { Error(Str); return 0; }
Value *NumberExprAST::Codegen() {
- return ConstantFP::get(Type::DoubleTy, APFloat(Val));
+ return ConstantFP::get(APFloat(Val));
}
Value *VariableExprAST::Codegen() {
OpenPOWER on IntegriCloud