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 | 28fe9e7a3675795aff7fb0f22b95ffe0c682b5de (patch) | |
tree | f67a4a0dacad3358b9efba3ee312aee3735ac9c9 /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 216bcd522bd7aed9241c5828996b86b50fdb91e7 (diff) | |
download | bcm5719-llvm-28fe9e7a3675795aff7fb0f22b95ffe0c682b5de.tar.gz bcm5719-llvm-28fe9e7a3675795aff7fb0f22b95ffe0c682b5de.zip |
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.
llvm-svn: 169484
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index 136e1578f4c..340e4709798 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/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); |