[Sparc] Change to let clang know that setjmp and longjmp intrinsics are implemented in the back-end.

Differential Revision: http://reviews.llvm.org/D19798

llvm-svn: 272782
This commit is contained in:
Chris Dewhurst 2016-06-15 12:44:47 +00:00
parent 927b54e48a
commit 0381cd7dbf
1 changed files with 5 additions and 0 deletions

View File

@ -6395,6 +6395,10 @@ public:
.Default(false);
}
bool hasSjLjLowering() const override {
return true;
}
ArrayRef<Builtin::Info> getTargetBuiltins() const override {
// FIXME: Implement!
return None;
@ -6562,6 +6566,7 @@ public:
SparcV8TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
: SparcTargetInfo(Triple, Opts) {
resetDataLayout("E-m:e-p:32:32-i64:64-f128:64-n32-S64");
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
// NetBSD / OpenBSD use long (same as llvm default); everyone else uses int.
switch (getTriple().getOS()) {
default: