diff options
author | John McCall <rjmccall@apple.com> | 2011-09-10 09:17:20 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-09-10 09:17:20 +0000 |
commit | 7f16c42b9e152de2ef763e76a5789a303ef2def4 (patch) | |
tree | 3730ea828f72fe4fbe36451cbd0307b03806f670 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 944cdc09a9617767f474f15abe803016b7e6e1f5 (diff) | |
download | bcm5719-llvm-7f16c42b9e152de2ef763e76a5789a303ef2def4.tar.gz bcm5719-llvm-7f16c42b9e152de2ef763e76a5789a303ef2def4.zip |
Simplify the generation of Objective-C setters, at least a little.
Use a more portable heuristic for deciding when to emit a single
atomic store; it's possible that I've lost information here, but
I'm not sure how much of the logic before was intentionally arch-specific
and how much was just not quite consistent.
llvm-svn: 139468
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 7d0d95141ab..aabd7703d0a 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -129,8 +129,12 @@ namespace CodeGen { /// The width of a pointer into the generic address space. unsigned char PointerWidthInBits; - /// The alignment of a pointer into the generic address space. - unsigned char PointerAlignInBytes; + /// The size and alignment of a pointer into the generic address + /// space. + union { + unsigned char PointerAlignInBytes; + unsigned char PointerSizeInBytes; + }; }; struct RREntrypoints { |