aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-05-15 01:53:33 +0000
committerJohn McCall <rjmccall@apple.com>2011-05-15 01:53:33 +0000
commit9dc0db2192500e70f1864053d9b82a00e7a58621 (patch)
tree4216008a31729198d38ebbe042c2759eab85883b /clang/lib/CodeGen/CodeGenModule.h
parentb55c8c127ee0a051d134367114ee823aeb179600 (diff)
downloadllvm-9dc0db2192500e70f1864053d9b82a00e7a58621.zip
llvm-9dc0db2192500e70f1864053d9b82a00e7a58621.tar.gz
llvm-9dc0db2192500e70f1864053d9b82a00e7a58621.tar.bz2
Use arrays and SmallVectors instead of std::vectors when building function
types. Also, cache a translation of 'void' in CGM and provide a ptrdiff_t alias. No functionality change. llvm-svn: 131373
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index ce708c8..779a352 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -97,16 +97,20 @@ namespace CodeGen {
};
struct CodeGenTypeCache {
+ /// void
+ const llvm::Type *VoidTy;
+
/// i8, i32, and i64
const llvm::IntegerType *Int8Ty, *Int32Ty, *Int64Ty;
/// int
const llvm::IntegerType *IntTy;
- /// intptr_t and size_t, which we assume are the same
+ /// intptr_t, size_t, and ptrdiff_t, which we assume are the same size.
union {
const llvm::IntegerType *IntPtrTy;
const llvm::IntegerType *SizeTy;
+ const llvm::IntegerType *PtrDiffTy;
};
/// void* in address space 0