aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/DebugInfo.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-06 07:38:10 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-06 07:38:10 +0000
commit222c2fd60d0cbe676f3f316a4d62a75762a83c40 (patch)
tree6a3e8c3a365b25e76ebb25b85feb6d43f91f2e74 /include/llvm/DebugInfo.h
parentda92646875b73c3822e47ce867f197efd2eacbc2 (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 'include/llvm/DebugInfo.h')
-rw-r--r--include/llvm/DebugInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/DebugInfo.h b/include/llvm/DebugInfo.h
index 8601f5532b..43af6ed080 100644
--- a/include/llvm/DebugInfo.h
+++ b/include/llvm/DebugInfo.h
@@ -142,7 +142,7 @@ namespace llvm {
public:
explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {}
- uint64_t getLo() const { return getUInt64Field(1); }
+ int64_t getLo() const { return getInt64Field(1); }
int64_t getCount() const { return getInt64Field(2); }
};