diff options
author | Devang Patel <dpatel@apple.com> | 2011-11-17 23:43:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-11-17 23:43:15 +0000 |
commit | ce35d8b5a1071bb8ccf70bf8be3952dd0c4f2f15 (patch) | |
tree | e062a669d8c630c6a5fb5a1ac92a72e4668986eb /include | |
parent | 2e7fb2f73641f1f1ca385fe7777075945bf4ca24 (diff) | |
download | external_llvm-ce35d8b5a1071bb8ccf70bf8be3952dd0c4f2f15.zip external_llvm-ce35d8b5a1071bb8ccf70bf8be3952dd0c4f2f15.tar.gz external_llvm-ce35d8b5a1071bb8ccf70bf8be3952dd0c4f2f15.tar.bz2 |
DISubrange supports unsigned lower/upper array bounds, so let's not fake it in the end while emitting DWARF. If a FE needs to encode signed lower/upper array bounds then we need to extend DISubrange or ad DISignedSubrange.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144937 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 09edfd7..c4489cf 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -135,8 +135,8 @@ namespace llvm { public: explicit DISubrange(const MDNode *N = 0) : DIDescriptor(N) {} - int64_t getLo() const { return (int64_t)getUInt64Field(1); } - int64_t getHi() const { return (int64_t)getUInt64Field(2); } + uint64_t getLo() const { return getUInt64Field(1); } + uint64_t getHi() const { return getUInt64Field(2); } }; /// DIArray - This descriptor holds an array of descriptors. |