aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-09 21:00:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-09 21:00:17 +0000
commit5ca2084cf9b529563209429857f01fdae9dcdfa5 (patch)
tree7bef0cceae645c1fc7d1f8011e04d96776c53652 /lib/CodeGen/CodeGenFunction.h
parent8592b1d9a0f0acfcc1adbbcbf860a6f4fd429674 (diff)
Use a unified return block.
- For the time being this means our emitted code is somewhat worse, especially for aggregates. This will be fixed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56013 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index d00c188639..6fad0486dd 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -64,6 +64,12 @@ public:
QualType FnRetTy;
llvm::Function *CurFn;
+ /// ReturnBlock - Unified return block.
+ llvm::BasicBlock *ReturnBlock;
+ /// ReturnValue - The temporary alloca to hold the return value. This
+ /// is null iff the function has no return value.
+ llvm::Instruction *ReturnValue;
+
/// AllocaInsertPoint - This is an instruction in the entry block before which
/// we prefer to insert allocas.
llvm::Instruction *AllocaInsertPt;