summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-15 21:34:29 +0000
committerChris Lattner <sabre@nondot.org>2007-06-15 21:34:29 +0000
commit2b228c95aa9bf69f27af12294149f57459ef41b1 (patch)
tree7fe530597b70eac5ebebd1941e080d4ccc77efcc /clang/CodeGen/CodeGenFunction.cpp
parent52d85bdd2b63825075c50a1fdb2f917bb5252ac5 (diff)
downloadbcm5719-llvm-2b228c95aa9bf69f27af12294149f57459ef41b1.tar.gz
bcm5719-llvm-2b228c95aa9bf69f27af12294149f57459ef41b1.zip
implement codegen of calls. We can now compile:
double foo( int (*FP)(int, int, int)) { return FP(1, 2, 3); } to: define double @foo(i32 (i32, i32, i32)* %FP) { entry: %call = tail call i32 %FP( i32 1, i32 2, i32 3 ) %conv = sitofp i32 %call to double ret double %conv } llvm-svn: 39658
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud