diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-27 20:59:43 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-27 20:59:43 +0000 |
commit | 69c464dec4795af43b4a432bae2b329ee5f1bef5 (patch) | |
tree | 3e3a64f042f90003a35e4cc3a91386fe47c1d11c /llvm/docs/tutorial/LangImpl4.html | |
parent | 7b2b1ec6b1a573c7b5909bb082ff27766774db80 (diff) | |
download | bcm5719-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/LangImpl4.html')
-rw-r--r-- | llvm/docs/tutorial/LangImpl4.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/tutorial/LangImpl4.html b/llvm/docs/tutorial/LangImpl4.html index 41f3a2cd85e..45002d29ea1 100644 --- a/llvm/docs/tutorial/LangImpl4.html +++ b/llvm/docs/tutorial/LangImpl4.html @@ -869,7 +869,7 @@ static FunctionPassManager *TheFPM; 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() { |