diff options
author | Devang Patel <dpatel@apple.com> | 2009-02-17 21:23:59 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-02-17 21:23:59 +0000 |
commit | 36375ee7a584343fabaf20630326f1848263bce6 (patch) | |
tree | f35a164ccccd774618350c06270144469cd78830 /include | |
parent | f163a957057339163c3dee24bce21911fb4dcdf5 (diff) | |
download | llvm-36375ee7a584343fabaf20630326f1848263bce6.tar.gz llvm-36375ee7a584343fabaf20630326f1848263bce6.tar.bz2 llvm-36375ee7a584343fabaf20630326f1848263bce6.tar.xz |
Emit debug info for bitfields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 164600e59d..1aa40e7b70 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -118,9 +118,9 @@ namespace llvm { /// code generator accepts maximum one main compile unit per module. If a /// module does not contain any main compile unit then the code generator /// will emit multiple compile units in the output object file. - bool isMain() const { return getUnsignedField(6); } - bool isOptimized() const { return getUnsignedField(7); } - std::string getFlags() const { return getStringField(8); } + bool isMain() const { return getUnsignedField(6); } + bool isOptimized() const { return getUnsignedField(7); } + std::string getFlags() const { return getStringField(8); } /// Verify - Verify that a compile unit is well formed. bool Verify() const; @@ -217,6 +217,9 @@ namespace llvm { explicit DIDerivedType(GlobalVariable *GV); DIType getTypeDerivedFrom() const { return getFieldAs<DIType>(9); } + /// getOriginalTypeSize - If this type is derived from a base type then + /// return base type size. + uint64_t getOriginalTypeSize() const; /// dump - print derived type. void dump() const; }; |