summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit69c464dec4795af43b4a432bae2b329ee5f1bef5 (patch)
tree3e3a64f042f90003a35e4cc3a91386fe47c1d11c /llvm/docs/tutorial/LangImpl3.html
parent7b2b1ec6b1a573c7b5909bb082ff27766774db80 (diff)
downloadbcm5719-llvm-69c464dec4795af43b4a432bae2b329ee5f1bef5.tar.gz
bcm5719-llvm-69c464dec4795af43b4a432bae2b329ee5f1bef5.zip
Move ConstantFP construction back to the 2.5-ish API.
llvm-svn: 77247
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 5031427a7be..c56b1edac65 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 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() {
OpenPOWER on IntegriCloud