diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-06-18 17:00:49 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-06-18 17:00:49 +0000 |
commit | a637fb8ccdecd5b0a1171f262b48d62efe9452bd (patch) | |
tree | eb3bc6fd16bde72af833d25a71becd14980e2093 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | c724765d528eb6bc22dc12774b98dedf2aba1491 (diff) | |
download | llvm-a637fb8ccdecd5b0a1171f262b48d62efe9452bd.zip llvm-a637fb8ccdecd5b0a1171f262b48d62efe9452bd.tar.gz llvm-a637fb8ccdecd5b0a1171f262b48d62efe9452bd.tar.bz2 |
CodeGen: Have 'this'-returning constructors and destructors to take advantage of the new backend 'returned' attribute.
The backend will now use the generic 'returned' attribute to form tail calls where possible, as well as avoid save-restores of 'this' in some cases (specifically the cases that matter for the ARM C++ ABI).
This patch also reverts a prior front-end only partial implementation of these optimizations, since it's no longer required.
llvm-svn: 184205
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 508e6a4..9071e07 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -798,10 +798,6 @@ private: CGDebugInfo *DebugInfo; bool DisableDebugInfo; - /// If the current function returns 'this', use the field to keep track of - /// the callee that returns 'this'. - llvm::Value *CalleeWithThisReturn; - /// DidCallStackSave - Whether llvm.stacksave has been called. Used to avoid /// calling llvm.stacksave for multiple VLAs in the same scope. bool DidCallStackSave; |