diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-03 00:07:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-03 00:07:12 +0000 |
commit | 40a6be686e5d5bb4198f1affda574e8a4b3a7710 (patch) | |
tree | 6216f275507740618af64dfc5e441e07085dbb8a /lib/CodeGen/CodeGenTypes.h | |
parent | 281481daeb97e56bb19e394efc34bfd4ab85a226 (diff) |
Memoize CGFunctionInfo construction.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.h')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenTypes.h b/lib/CodeGen/CodeGenTypes.h index d41c23d374..3070c85260 100644 --- a/lib/CodeGen/CodeGenTypes.h +++ b/lib/CodeGen/CodeGenTypes.h @@ -100,6 +100,9 @@ class CodeGenTypes { /// field no. This info is populated by record organizer. llvm::DenseMap<const FieldDecl *, unsigned> FieldInfo; + /// FunctionInfos - Hold memoized CGFunctionInfo results. + llvm::FoldingSet<CGFunctionInfo> FunctionInfos; + public: class BitFieldInfo { public: |