summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-06-02 03:19:07 +0000
committerChris Lattner <sabre@nondot.org>2007-06-02 03:19:07 +0000
commit3f3dbeedd391f10a410aa8fff5a9c95055ce214c (patch)
tree6987d1ac5f29af14a836b2faa2e7554c445b87d0 /clang/CodeGen/CodeGenFunction.h
parentadb6372aa58456513b3db54ed552aefb61b6d887 (diff)
downloadbcm5719-llvm-3f3dbeedd391f10a410aa8fff5a9c95055ce214c.tar.gz
bcm5719-llvm-3f3dbeedd391f10a410aa8fff5a9c95055ce214c.zip
implement codegen support for return of void and simple scalars.
llvm-svn: 39547
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/CodeGen/CodeGenFunction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenFunction.h b/clang/CodeGen/CodeGenFunction.h
index 6e042d98658..fb7e72a9050 100644
--- a/clang/CodeGen/CodeGenFunction.h
+++ b/clang/CodeGen/CodeGenFunction.h
@@ -30,6 +30,7 @@ namespace clang {
class LabelStmt;
class GotoStmt;
class IfStmt;
+ class ReturnStmt;
class Expr;
class IntegerLiteral;
@@ -80,6 +81,8 @@ class CodeGenFunction {
CodeGenModule &CGM; // Per-module state.
TargetInfo &Target;
LLVMBuilder Builder;
+
+ const FunctionDecl *CurFuncDecl;
llvm::Function *CurFn;
/// LabelMap - This keeps track of the LLVM basic block for each C label.
@@ -108,6 +111,7 @@ public:
void EmitLabelStmt(const LabelStmt &S);
void EmitGotoStmt(const GotoStmt &S);
void EmitIfStmt(const IfStmt &S);
+ void EmitReturnStmt(const ReturnStmt &S);
//===--------------------------------------------------------------------===//
// Expression Emission
OpenPOWER on IntegriCloud