diff options
| author | Gabor Greif <ggreif@gmail.com> | 2008-06-10 01:52:17 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2008-06-10 01:52:17 +0000 |
| commit | 5934adf9bbe4e5b06d313e58bdae5907c11cfa51 (patch) | |
| tree | f561816e49123b4fa8f7eb69312b78ebb4e4d825 /docs/tutorial/LangImpl3.html | |
| parent | c5b822b5b6e7fbf92b7be11888ca2859cef187f1 (diff) | |
adjust calls to ConstantFP::get to new API
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl3.html')
| -rw-r--r-- | docs/tutorial/LangImpl3.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 39a672dc86..2acd3ddb53 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 ConstantFP::get(Type::DoubleTy, APFloat(Val)); + return ConstantFP::get(APFloat(Val)); } </pre> </div> @@ -1033,7 +1033,7 @@ static std::map<std::string, Value*> 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() { |
