diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-02-26 22:09:03 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-02-26 22:09:03 +0000 | 
| commit | c3b054d250cdca485c71845089c316e10610ebad (patch) | |
| tree | abae0246ec9156cc1a7cbb947b2b0dfe95fa3189 /lib/CodeGen/CodeGenModule.h | |
| parent | bca07a4524feb4edec581062d631a13116320a24 (diff) | |
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.h | 11 | 
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index b6bd37c1c0d3..73e6ece14732 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -120,8 +120,11 @@ namespace CodeGen {        const llvm::PointerType *Int8PtrPtrTy;      }; -    /// The width of an address-zero pointer. +    /// 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;    };  /// CodeGenModule - This class organizes the cross-function state that is used @@ -292,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, @@ -386,8 +391,8 @@ public:                                            unsigned Align,                                            const VarDecl *variable); -  /// getGlobalUniqueCount - Fetches the global unique block count. -  int getGlobalUniqueCount() { return ++Block.GlobalUniqueCount; } +  /// getUniqueBlockCount - Fetches the global unique block count. +  int getUniqueBlockCount() { return ++Block.GlobalUniqueCount; }    /// getBlockDescriptorType - Fetches the type of a generic block    /// descriptor.  | 
