summaryrefslogtreecommitdiffstats
path: root/llvm/docs/tutorial/LangImpl6.html
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-06-10 01:52:17 +0000
committerGabor Greif <ggreif@gmail.com>2008-06-10 01:52:17 +0000
commit8030749993c49713c7eb32fcd0b8e6cbd7e77b77 (patch)
tree5c62870e9c5865bc6bdccade82f21e9133289d7a /llvm/docs/tutorial/LangImpl6.html
parent406fb231f8f414b0fe0ac842e2262eb9c9c5ccf5 (diff)
downloadbcm5719-llvm-8030749993c49713c7eb32fcd0b8e6cbd7e77b77.tar.gz
bcm5719-llvm-8030749993c49713c7eb32fcd0b8e6cbd7e77b77.zip
adjust calls to ConstantFP::get to new API
llvm-svn: 52165
Diffstat (limited to 'llvm/docs/tutorial/LangImpl6.html')
-rw-r--r--llvm/docs/tutorial/LangImpl6.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/docs/tutorial/LangImpl6.html b/llvm/docs/tutorial/LangImpl6.html
index 97eba53ed4f..39febee6539 100644
--- a/llvm/docs/tutorial/LangImpl6.html
+++ b/llvm/docs/tutorial/LangImpl6.html
@@ -1364,7 +1364,7 @@ static FunctionPassManager *TheFPM;
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() {
@@ -1435,7 +1435,7 @@ Value *IfExprAST::Codegen() {
// Convert condition to a bool by comparing equal to 0.0.
CondV = Builder.CreateFCmpONE(CondV,
- ConstantFP::get(Type::DoubleTy, APFloat(0.0)),
+ ConstantFP::get(APFloat(0.0)),
"ifcond");
Function *TheFunction = Builder.GetInsertBlock()-&gt;getParent();
@@ -1534,7 +1534,7 @@ Value *ForExprAST::Codegen() {
if (StepVal == 0) return 0;
} else {
// If not specified, use 1.0.
- StepVal = ConstantFP::get(Type::DoubleTy, APFloat(1.0));
+ StepVal = ConstantFP::get(APFloat(1.0));
}
Value *NextVar = Builder.CreateAdd(Variable, StepVal, "nextvar");
@@ -1545,7 +1545,7 @@ Value *ForExprAST::Codegen() {
// Convert condition to a bool by comparing equal to 0.0.
EndCond = Builder.CreateFCmpONE(EndCond,
- ConstantFP::get(Type::DoubleTy, APFloat(0.0)),
+ ConstantFP::get(APFloat(0.0)),
"loopcond");
// Create the "after loop" block and insert it.
OpenPOWER on IntegriCloud