summaryrefslogtreecommitdiff
path: root/docs/tutorial/LangImpl3.html
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-27 20:59:43 +0000
committerOwen Anderson <resistor@mac.com>2009-07-27 20:59:43 +0000
commit6f83c9c6ef0e7f79825a0a8f22941815e4b684c7 (patch)
treea6b206cab778933e7ebb35788fc3b41e47b57c7c /docs/tutorial/LangImpl3.html
parent9a31254d0e51cfe08bc0e0c63ea04780cbc776f4 (diff)
downloadllvm-6f83c9c6ef0e7f79825a0a8f22941815e4b684c7.tar.gz
llvm-6f83c9c6ef0e7f79825a0a8f22941815e4b684c7.tar.bz2
llvm-6f83c9c6ef0e7f79825a0a8f22941815e4b684c7.tar.xz
Move ConstantFP construction back to the 2.5-ish API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl3.html')
-rw-r--r--docs/tutorial/LangImpl3.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html
index 5031427a7b..c56b1edac6 100644
--- a/docs/tutorial/LangImpl3.html
+++ b/docs/tutorial/LangImpl3.html
@@ -159,7 +159,7 @@ we'll do numeric literals:</p>
<div class="doc_code">
<pre>
Value *NumberExprAST::Codegen() {
- return getGlobalContext().getConstantFP(APFloat(Val));
+ return ConstantFP::get(getGlobalContext(), APFloat(Val));
}
</pre>
</div>
@@ -1034,7 +1034,7 @@ static std::map&lt;std::string, Value*&gt; NamedValues;
Value *ErrorV(const char *Str) { Error(Str); return 0; }
Value *NumberExprAST::Codegen() {
- return getGlobalContext().getConstantFP(APFloat(Val));
+ return ConstantFP::get(getGlobalContext(), APFloat(Val));
}
Value *VariableExprAST::Codegen() {