diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-31 20:28:14 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-31 20:28:14 +0000 |
| commit | 5a1acd99126d8b867aef4a785aae635fb98b6c08 (patch) | |
| tree | 4a7049e4b83ac61c1b374bbb168e359ff4d5268a /llvm/docs | |
| parent | ef3ef7f645cd4f070e426ed781f0104bcffb45d7 (diff) | |
| download | bcm5719-llvm-5a1acd99126d8b867aef4a785aae635fb98b6c08.tar.gz bcm5719-llvm-5a1acd99126d8b867aef4a785aae635fb98b6c08.zip | |
Move a few more APIs back to 2.5 forms. The only remaining ones left to change back are
metadata related, which I'm waiting on to avoid conflicting with Devang.
llvm-svn: 77721
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/tutorial/LangImpl5.html | 2 | ||||
| -rw-r--r-- | llvm/docs/tutorial/LangImpl6.html | 2 | ||||
| -rw-r--r-- | llvm/docs/tutorial/LangImpl7.html | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl5.html b/llvm/docs/tutorial/LangImpl5.html index 8d77d5ec892..9057cae384d 100644 --- a/llvm/docs/tutorial/LangImpl5.html +++ b/llvm/docs/tutorial/LangImpl5.html @@ -856,7 +856,7 @@ the loop again and exiting the loop. Any future code is emitted in the NamedValues.erase(VarName); // for expr always returns 0.0. - return TheFunction->getContext().getNullValue(Type::DoubleTy); + return Constant::getNullValue(Type::DoubleTy); } </pre> </div> diff --git a/llvm/docs/tutorial/LangImpl6.html b/llvm/docs/tutorial/LangImpl6.html index 0f714b385ad..d845eb86c1a 100644 --- a/llvm/docs/tutorial/LangImpl6.html +++ b/llvm/docs/tutorial/LangImpl6.html @@ -1570,7 +1570,7 @@ Value *ForExprAST::Codegen() { // for expr always returns 0.0. - return TheFunction->getContext().getNullValue(Type::DoubleTy); + return Constant::getNullValue(Type::DoubleTy); } Function *PrototypeAST::Codegen() { diff --git a/llvm/docs/tutorial/LangImpl7.html b/llvm/docs/tutorial/LangImpl7.html index 844c48fff23..691bfacb600 100644 --- a/llvm/docs/tutorial/LangImpl7.html +++ b/llvm/docs/tutorial/LangImpl7.html @@ -1858,7 +1858,7 @@ Value *ForExprAST::Codegen() { // for expr always returns 0.0. - return TheFunction->getContext().getNullValue(Type::DoubleTy); + return Constant::getNullValue(Type::DoubleTy); } Value *VarExprAST::Codegen() { |

