diff options
| author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-10-08 20:09:50 +0000 |
|---|---|---|
| committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-10-08 20:09:50 +0000 |
| commit | c7113073dd2feba5e70301d04b270b0fa8e4cfa3 (patch) | |
| tree | 206b80e000e8a173438f834b29988bbdc6128f27 /clang/lib/CodeGen/CGVTables.h | |
| parent | 2f84f46fef4cf1140b07e893dad3d3fd9a60ab40 (diff) | |
| download | bcm5719-llvm-c7113073dd2feba5e70301d04b270b0fa8e4cfa3.tar.gz bcm5719-llvm-c7113073dd2feba5e70301d04b270b0fa8e4cfa3.zip | |
Revert 192220 as it fails on an assertion
llvm-svn: 192225
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.h')
| -rw-r--r-- | clang/lib/CodeGen/CGVTables.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGVTables.h b/clang/lib/CodeGen/CGVTables.h index e17ad89c5e7..9b95952e5e8 100644 --- a/clang/lib/CodeGen/CGVTables.h +++ b/clang/lib/CodeGen/CGVTables.h @@ -52,12 +52,15 @@ class CodeGenVTables { /// indices. SecondaryVirtualPointerIndicesMapTy SecondaryVirtualPointerIndices; - /// emitThunk - Emit a single thunk. - void emitThunk(GlobalDecl GD, const ThunkInfo &Thunk, bool ForVTable); - - /// maybeEmitThunkForVTable - Emit the given thunk for the vtable if needed by - /// the ABI. - void maybeEmitThunkForVTable(GlobalDecl GD, const ThunkInfo &Thunk); + /// EmitThunk - Emit a single thunk. + void EmitThunk(GlobalDecl GD, const ThunkInfo &Thunk, + bool UseAvailableExternallyLinkage); + + /// MaybeEmitThunkAvailableExternally - Try to emit the given thunk with + /// available_externally linkage to allow for inlining of thunks. + /// This will be done iff optimizations are enabled and the member function + /// doesn't contain any incomplete types. + void MaybeEmitThunkAvailableExternally(GlobalDecl GD, const ThunkInfo &Thunk); public: /// CreateVTableInitializer - Create a vtable initializer for the given record |

