aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-02-26 08:07:02 +0000
committerJohn McCall <rjmccall@apple.com>2011-02-26 08:07:02 +0000
commit53fcbd2718222d3c2abef0a39cf7bb73f2d63b8f (patch)
tree3f1e072918e6e59d4614a9176799273fad17894e /clang/lib/CodeGen/CodeGenModule.h
parentbebede4d336a709d237fdbf20ddd5f2eac51101b (diff)
downloadllvm-53fcbd2718222d3c2abef0a39cf7bb73f2d63b8f.zip
llvm-53fcbd2718222d3c2abef0a39cf7bb73f2d63b8f.tar.gz
llvm-53fcbd2718222d3c2abef0a39cf7bb73f2d63b8f.tar.bz2
Pretty up the emission of field l-values and use volatile and TBAA when
loading references as part of that. Use 'char' TBAA when accessing (immediate!) fields of a may_alias struct; fixes PR9307. llvm-svn: 126540
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 1528e4b..73e6ece 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -295,6 +295,8 @@ public:
const TargetCodeGenInfo &getTargetCodeGenInfo();
bool isTargetDarwin() const;
+ bool shouldUseTBAA() const { return TBAA != 0; }
+
llvm::MDNode *getTBAAInfo(QualType QTy);
static void DecorateInstruction(llvm::Instruction *Inst,