diff options
author | Anders Carlsson <andersca@mac.com> | 2009-11-26 03:09:37 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-11-26 03:09:37 +0000 |
commit | 2f87c4f1a599b5c886d60ce16fbd788c6b73ca43 (patch) | |
tree | 5397d7b8fd833bbed83fbe4f7a876833993f6333 /clang/lib/CodeGen/CGVtable.h | |
parent | f873c2fb68c618af8185737c92962e21a9ff903d (diff) | |
download | bcm5719-llvm-2f87c4f1a599b5c886d60ce16fbd788c6b73ca43.tar.gz bcm5719-llvm-2f87c4f1a599b5c886d60ce16fbd788c6b73ca43.zip |
Add a CovariantThunkAdjustment struct that represents the adjustments needed for a covariant thunk.
llvm-svn: 89933
Diffstat (limited to 'clang/lib/CodeGen/CGVtable.h')
-rw-r--r-- | clang/lib/CodeGen/CGVtable.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGVtable.h b/clang/lib/CodeGen/CGVtable.h index 1d98bed4b2a..9a25ce30336 100644 --- a/clang/lib/CodeGen/CGVtable.h +++ b/clang/lib/CodeGen/CGVtable.h @@ -49,6 +49,19 @@ struct ThunkAdjustment { int64_t Virtual; }; +/// CovariantThunkAdjustment - Adjustment of the 'this' pointer and the +/// return pointer for covariant thunks. +struct CovariantThunkAdjustment { + CovariantThunkAdjustment(const ThunkAdjustment &ThisAdjustment, + const ThunkAdjustment &ReturnAdjustment) + : ThisAdjustment(ThisAdjustment), ReturnAdjustment(ReturnAdjustment) { } + + CovariantThunkAdjustment() { } + + ThunkAdjustment ThisAdjustment; + ThunkAdjustment ReturnAdjustment; +}; + class CGVtableInfo { CodeGenModule &CGM; |