diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-06-07 09:21:25 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-07 09:21:25 +0000 |
| commit | 70b4596d9d0d559e94f9bad8f43463e5d98a577e (patch) | |
| tree | 57fdd33d153490269ca615ac308de731d00669da /lib/CodeGen/ABIInfo.h | |
| parent | 37f6c480c696a4a72c1701ee54624cc807aa80ba (diff) | |
Notes
Diffstat (limited to 'lib/CodeGen/ABIInfo.h')
| -rw-r--r-- | lib/CodeGen/ABIInfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/ABIInfo.h b/lib/CodeGen/ABIInfo.h index 44af0c476aa5..58e5a778cf33 100644 --- a/lib/CodeGen/ABIInfo.h +++ b/lib/CodeGen/ABIInfo.h @@ -44,6 +44,9 @@ namespace clang { /// converted LLVM type. Complex and structure types /// are passed using first class aggregates. + Extend, /// Valid only for integer argument types. Same as 'direct' + /// but also emit a zero/sign extension attribute. + Indirect, /// Pass the argument indirectly via a hidden pointer /// with the specified alignment (0 indicates default /// alignment). @@ -79,6 +82,9 @@ namespace clang { static ABIArgInfo getDirect() { return ABIArgInfo(Direct); } + static ABIArgInfo getExtend() { + return ABIArgInfo(Extend); + } static ABIArgInfo getIgnore() { return ABIArgInfo(Ignore); } @@ -94,6 +100,7 @@ namespace clang { Kind getKind() const { return TheKind; } bool isDirect() const { return TheKind == Direct; } + bool isExtend() const { return TheKind == Extend; } bool isIgnore() const { return TheKind == Ignore; } bool isCoerce() const { return TheKind == Coerce; } bool isIndirect() const { return TheKind == Indirect; } |
