diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-06 07:38:10 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-06 07:38:10 +0000 |
commit | 222c2fd60d0cbe676f3f316a4d62a75762a83c40 (patch) | |
tree | 6a3e8c3a365b25e76ebb25b85feb6d43f91f2e74 /lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | da92646875b73c3822e47ce867f197efd2eacbc2 (diff) |
Handle non-default array bounds.
Some languages, e.g. Ada and Pascal, allow you to specify that the array bounds
are different from the default (1 in these cases). If we have a lower bound
that's non-default, then we emit the lower bound. We also calculate the correct
upper bound in those cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 136e1578f4..340e470979 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -79,6 +79,8 @@ class CompileUnit { /// corresponds to the MDNode mapped with the subprogram DIE. DenseMap<DIE *, const MDNode *> ContainingTypeMap; + int64_t getLowerBoundDefault() const; + public: CompileUnit(unsigned UID, unsigned L, DIE *D, AsmPrinter *A, DwarfDebug *DW); ~CompileUnit(); @@ -174,7 +176,6 @@ public: void setIndexTyDie(DIE *D) { IndexTyDie = D; } -public: /// addFlag - Add a flag that is true to the DIE. void addFlag(DIE *Die, unsigned Attribute); |