diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-08-26 22:39:55 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-08-26 22:39:55 +0000 |
commit | 6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8 (patch) | |
tree | 8aaac55e738c68b9d74e97ab921cb0a46b41ba87 /include/llvm/DebugInfo.h | |
parent | 4bf6326d0871961a7402c797a0399a2bdaf53574 (diff) | |
download | llvm-6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8.tar.gz llvm-6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8.tar.bz2 llvm-6e3cd0ebe22a7cc959ed301de7f2f09d7a9307c8.tar.xz |
Debug Info: add an identifier field to DICompositeType.
DICompositeType will have an identifier field at position 14. For now, the
field is set to null in DIBuilder.
For DICompositeTypes where the template argument field (the 13th field)
was optional, modify DIBuilder to make sure the template argument field is set.
Now DICompositeType has 15 fields.
Update DIBuilder to use NULL instead of "i32 0" for null value of a MDNode.
Update verifier to check that DICompositeType has 15 fields and the last
field is null or a MDString.
Update testing cases to include an extra field for DICompositeType.
The identifier field will be used by type uniquing so a front end can
genearte a DICompositeType with a unique identifer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DebugInfo.h')
-rw-r--r-- | include/llvm/DebugInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h index 2efc730f09..87ccac10dd 100644 --- a/include/llvm/DebugInfo.h +++ b/include/llvm/DebugInfo.h @@ -34,6 +34,7 @@ namespace llvm { class DbgValueInst; class Instruction; class MDNode; + class MDString; class NamedMDNode; class LLVMContext; class raw_ostream; @@ -330,6 +331,7 @@ namespace llvm { } void setContainingType(DICompositeType ContainingType); DIArray getTemplateParams() const { return getFieldAs<DIArray>(13); } + MDString *getIdentifier() const; /// Verify - Verify that a composite type descriptor is well formed. bool Verify() const; |