Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/llvm/tools/clang/lib/Driver/ToolChains/FreeBSD.cpp
Show First 20 Lines • Show All 403 Lines • ▼ Show 20 Lines | if (getTriple().getArch() == llvm::Triple::arm || | ||||
getTriple().getArch() == llvm::Triple::thumb) | getTriple().getArch() == llvm::Triple::thumb) | ||||
return llvm::ExceptionHandling::SjLj; | return llvm::ExceptionHandling::SjLj; | ||||
return llvm::ExceptionHandling::None; | return llvm::ExceptionHandling::None; | ||||
} | } | ||||
} | } | ||||
bool FreeBSD::HasNativeLLVMSupport() const { return true; } | bool FreeBSD::HasNativeLLVMSupport() const { return true; } | ||||
bool FreeBSD::IsUnwindTablesDefault(const ArgList &Args) const { return true; } | |||||
bool FreeBSD::isPIEDefault() const { return getSanitizerArgs().requiresPIE(); } | bool FreeBSD::isPIEDefault() const { return getSanitizerArgs().requiresPIE(); } | ||||
SanitizerMask FreeBSD::getSupportedSanitizers() const { | SanitizerMask FreeBSD::getSupportedSanitizers() const { | ||||
const bool IsX86 = getTriple().getArch() == llvm::Triple::x86; | const bool IsX86 = getTriple().getArch() == llvm::Triple::x86; | ||||
const bool IsX86_64 = getTriple().getArch() == llvm::Triple::x86_64; | const bool IsX86_64 = getTriple().getArch() == llvm::Triple::x86_64; | ||||
const bool IsMIPS64 = getTriple().isMIPS64(); | const bool IsMIPS64 = getTriple().isMIPS64(); | ||||
SanitizerMask Res = ToolChain::getSupportedSanitizers(); | SanitizerMask Res = ToolChain::getSupportedSanitizers(); | ||||
Res |= SanitizerKind::Address; | Res |= SanitizerKind::Address; | ||||
Show All 17 Lines |