summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTables.h
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-10-08 19:15:38 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-10-08 19:15:38 +0000
commit1ffb3916ce2ca71d1827db0cf39b7a0876e68ca7 (patch)
tree181eaf94cdb1e23dbf5b7bab845ba1a97377d1b5 /clang/lib/CodeGen/CGVTables.h
parent71cd285dc84426c786010c3bdbfcbfb1f7e23016 (diff)
downloadbcm5719-llvm-1ffb3916ce2ca71d1827db0cf39b7a0876e68ca7.tar.gz
bcm5719-llvm-1ffb3916ce2ca71d1827db0cf39b7a0876e68ca7.zip
Abstract out parts of thunk emission code, add support for simple thunks when using -cxx-abi microsoft
Reviewed at http://llvm-reviews.chandlerc.com/D1787 llvm-svn: 192220
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.h')
-rw-r--r--clang/lib/CodeGen/CGVTables.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGVTables.h b/clang/lib/CodeGen/CGVTables.h
index 9b95952e5e8..e17ad89c5e7 100644
--- a/clang/lib/CodeGen/CGVTables.h
+++ b/clang/lib/CodeGen/CGVTables.h
@@ -52,15 +52,12 @@ class CodeGenVTables {
/// indices.
SecondaryVirtualPointerIndicesMapTy SecondaryVirtualPointerIndices;
- /// 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);
+ /// 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);
public:
/// CreateVTableInitializer - Create a vtable initializer for the given record
OpenPOWER on IntegriCloud