diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2016-12-01 18:07:38 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2016-12-01 18:07:38 +0000 |
commit | b0f2c33920268cccbea2d3de3b699c6fa877ee1d (patch) | |
tree | ff0938d96a62a20decdcf5f474bbce59e07bdf46 /clang/lib/CodeGen/ABIInfo.h | |
parent | 043d9e369f0b1ab1f09f8bff1191abca3ce23099 (diff) | |
download | bcm5719-llvm-b0f2c33920268cccbea2d3de3b699c6fa877ee1d.tar.gz bcm5719-llvm-b0f2c33920268cccbea2d3de3b699c6fa877ee1d.zip |
swiftcc: Add an api to query whether a target ABI stores swifterror in a register
llvm-svn: 288394
Diffstat (limited to 'clang/lib/CodeGen/ABIInfo.h')
-rw-r--r-- | clang/lib/CodeGen/ABIInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/ABIInfo.h b/clang/lib/CodeGen/ABIInfo.h index 530a7ef560c..ac31dfdaf3e 100644 --- a/clang/lib/CodeGen/ABIInfo.h +++ b/clang/lib/CodeGen/ABIInfo.h @@ -142,6 +142,8 @@ namespace swiftcall { llvm::Type *eltTy, unsigned elts) const; + virtual bool isSwiftErrorInRegister() const = 0; + static bool classof(const ABIInfo *info) { return info->supportsSwift(); } |