diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-12-04 21:34:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-12-04 21:34:03 +0000 |
commit | 9493dae613847b01b79914502f337814fe3e00ac (patch) | |
tree | a226d132d41fbb221f379e5d5099b28a3e13af70 /include/llvm/DIBuilder.h | |
parent | 91b9763d53d12e5bb89a395daec9e12359e7adb4 (diff) | |
download | external_llvm-9493dae613847b01b79914502f337814fe3e00ac.tar.gz external_llvm-9493dae613847b01b79914502f337814fe3e00ac.tar.bz2 external_llvm-9493dae613847b01b79914502f337814fe3e00ac.zip |
Use the 'count' attribute to calculate the upper bound of an array.
The count attribute is more accurate with regards to the size of an array. It
also obviates the upper bound attribute in the subrange. We can also better
handle an unbound array by setting the count to -1 instead of the lower bound to
1 and upper bound to 0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DIBuilder.h')
-rw-r--r-- | include/llvm/DIBuilder.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index 72566322e1..f6bc7b12ec 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -371,7 +371,7 @@ namespace llvm { /// getOrCreateSubrange - Create a descriptor for a value range. This /// implicitly uniques the values returned. - DISubrange getOrCreateSubrange(int64_t Lo, int64_t Hi, int64_t Count); + DISubrange getOrCreateSubrange(int64_t Lo, int64_t Count); /// createGlobalVariable - Create a new descriptor for the specified global. /// @param Name Name of the variable. |