aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DIBuilder.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-08-16 22:09:43 +0000
committerDevang Patel <dpatel@apple.com>2011-08-16 22:09:43 +0000
commit94c7ddb6f52a5200983fed0ce74dc602a7737879 (patch)
treec518ecc9201ac8f1f15ed60fabaf069d2cc8b603 /include/llvm/Analysis/DIBuilder.h
parent054ddf799b5487b85f6bc1d856c4e2a4978da4f7 (diff)
downloadexternal_llvm-94c7ddb6f52a5200983fed0ce74dc602a7737879.tar.gz
external_llvm-94c7ddb6f52a5200983fed0ce74dc602a7737879.tar.bz2
external_llvm-94c7ddb6f52a5200983fed0ce74dc602a7737879.zip
Until now all debug info MDNodes referred to a root MDNode, a compile unit. This simplified handling of these needs in dwarf writer. However, one side effect of this is that during link time optimization all these MDNodes are _not_ uniqued. In other words there will be N number of MDNodes describing "int", "char" and all other types, which would suddenly grow when each object file starts using libraries like STL.
MDNodes graph structure such that compiler unit keeps track of important MDNodes and update dwarf writer to process mdnodes top-down instead of bottom up. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DIBuilder.h')
-rw-r--r--include/llvm/Analysis/DIBuilder.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DIBuilder.h b/include/llvm/Analysis/DIBuilder.h
index 0f6fd50338..8a6a58e3ed 100644
--- a/include/llvm/Analysis/DIBuilder.h
+++ b/include/llvm/Analysis/DIBuilder.h
@@ -48,9 +48,19 @@ namespace llvm {
LLVMContext & VMContext;
MDNode *TheCU;
+ MDNode *TempEnumTypes;
+ MDNode *TempRetainTypes;
+ MDNode *TempSubprograms;
+ MDNode *TempGVs;
+
Function *DeclareFn; // llvm.dbg.declare
Function *ValueFn; // llvm.dbg.value
+ SmallVector<Value *, 4> AllEnumTypes;
+ SmallVector<Value *, 4> AllRetainTypes;
+ SmallVector<Value *, 4> AllSubprograms;
+ SmallVector<Value *, 4> AllGVs;
+
DIBuilder(const DIBuilder &); // DO NOT IMPLEMENT
void operator=(const DIBuilder &); // DO NOT IMPLEMENT