summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-09-13 20:48:30 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-09-13 20:48:30 +0000
commit5be3e6ae9d6e8d5e35033bc4dd42d75c8e44b3de (patch)
tree6fcd11d713649d9bac2028f09abe9f95f0691459 /clang/lib/CodeGen
parent7f0e98fd7fe375fb3a640a624d52260736a51bea (diff)
downloadbcm5719-llvm-5be3e6ae9d6e8d5e35033bc4dd42d75c8e44b3de.tar.gz
bcm5719-llvm-5be3e6ae9d6e8d5e35033bc4dd42d75c8e44b3de.zip
Turn off the generation of unaligned atomic load/store; I'm going to explicitly error out on such cases in the backend, at least for the moment.
llvm-svn: 139640
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 8f5e1fb761d..456909bf537 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -378,7 +378,9 @@ static void emitStructGetterCall(CodeGenFunction &CGF, ObjCIvarDecl *ivar,
/// accesses. They don't have to be fast, just faster than a function
/// call and a mutex.
static bool hasUnalignedAtomics(llvm::Triple::ArchType arch) {
- return (arch == llvm::Triple::x86 || arch == llvm::Triple::x86_64);
+ // FIXME: Allow unaligned atomic load/store on x86. (It is not
+ // currently supported by the backend.)
+ return 0;
}
/// Return the maximum size that permits atomic accesses for the given
OpenPOWER on IntegriCloud