diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 00:39:59 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 00:39:59 +0000 |
commit | 5dcf621c8a7bdaa6ddddeef28b5544ee453d0dcd (patch) | |
tree | b5b99314c6bf1c1cf2aeff3043370792e7cf89cd /llvm/lib/IR/LLVMContextImpl.h | |
parent | 7cf5fedbada3a8258e762f369100e3f3064b81cb (diff) | |
download | bcm5719-llvm-5dcf621c8a7bdaa6ddddeef28b5544ee453d0dcd.tar.gz bcm5719-llvm-5dcf621c8a7bdaa6ddddeef28b5544ee453d0dcd.zip |
IR: Rename MDSubrange::getLo() to getLowerBound()
During initial review, the `lo:` field was renamed to `lowerBound:`.
Make the same change to the C++ API.
llvm-svn: 234267
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h index dfb8faabb15..6f9a3e1f639 100644 --- a/llvm/lib/IR/LLVMContextImpl.h +++ b/llvm/lib/IR/LLVMContextImpl.h @@ -275,15 +275,17 @@ template <> struct MDNodeKeyImpl<GenericDebugNode> : MDNodeOpsKey { template <> struct MDNodeKeyImpl<MDSubrange> { int64_t Count; - int64_t Lo; + int64_t LowerBound; - MDNodeKeyImpl(int64_t Count, int64_t Lo) : Count(Count), Lo(Lo) {} - MDNodeKeyImpl(const MDSubrange *N) : Count(N->getCount()), Lo(N->getLo()) {} + MDNodeKeyImpl(int64_t Count, int64_t LowerBound) + : Count(Count), LowerBound(LowerBound) {} + MDNodeKeyImpl(const MDSubrange *N) + : Count(N->getCount()), LowerBound(N->getLowerBound()) {} bool isKeyOf(const MDSubrange *RHS) const { - return Count == RHS->getCount() && Lo == RHS->getLo(); + return Count == RHS->getCount() && LowerBound == RHS->getLowerBound(); } - unsigned getHashValue() const { return hash_combine(Count, Lo); } + unsigned getHashValue() const { return hash_combine(Count, LowerBound); } }; template <> struct MDNodeKeyImpl<MDEnumerator> { |