Assume ARMv6 for NetBSD for now for strex/ldrex.

llvm-svn: 196115
This commit is contained in:
Joerg Sonnenberger 2013-12-02 16:12:05 +00:00
parent 7c7fcec329
commit fbd51bef13
1 changed files with 1 additions and 0 deletions

View File

@ -3679,6 +3679,7 @@ class ARMTargetInfo : public TargetInfo {
// it is safe to use atomic instructions on armv6 and newer.
if (!T.isOSLinux() &&
T.getOS() != llvm::Triple::FreeBSD &&
T.getOS() != llvm::Triple::NetBSD &&
T.getOS() != llvm::Triple::Bitrig)
return false;
StringRef ArchName = T.getArchName();