diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-11 22:33:26 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-11 22:33:26 +0000 |
commit | e9229a6a9614cbde1bff2bd6ffae3b7336db5702 (patch) | |
tree | 4d7d12799ee9ced18116004ecb1aebfc3a87562b /lib/Bitcode/Writer/ValueEnumerator.h | |
parent | 04ef4be048934f8acf15c4ed6e3ebdd410c252bb (diff) |
Rename AttributeSets to AttributeGroups so that it's more meaningful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r-- | lib/Bitcode/Writer/ValueEnumerator.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.h b/lib/Bitcode/Writer/ValueEnumerator.h index 6e91d68fcb..33db52388a 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.h +++ b/lib/Bitcode/Writer/ValueEnumerator.h @@ -52,9 +52,9 @@ private: SmallVector<const MDNode *, 8> FunctionLocalMDs; ValueMapType MDValueMap; - typedef DenseMap<AttributeSet, unsigned> AttributeSetMapType; - AttributeSetMapType AttributeSetMap; - std::vector<AttributeSet> AttributeSets; + typedef DenseMap<AttributeSet, unsigned> AttributeGroupMapType; + AttributeGroupMapType AttributeGroupMap; + std::vector<AttributeSet> AttributeGroups; typedef DenseMap<void*, unsigned> AttributeMapType; AttributeMapType AttributeMap; @@ -102,17 +102,17 @@ public: unsigned getInstructionID(const Instruction *I) const; void setInstructionID(const Instruction *I); - unsigned getAttributeID(const AttributeSet &PAL) const { + unsigned getAttributeID(AttributeSet PAL) const { if (PAL.isEmpty()) return 0; // Null maps to zero. AttributeMapType::const_iterator I = AttributeMap.find(PAL.getRawPointer()); assert(I != AttributeMap.end() && "Attribute not in ValueEnumerator!"); return I->second; } - unsigned getAttributeSetID(const AttributeSet &PAL) const { + unsigned getAttributeGroupID(AttributeSet PAL) const { if (PAL.isEmpty()) return 0; // Null maps to zero. - AttributeSetMapType::const_iterator I = AttributeSetMap.find(PAL); - assert(I != AttributeSetMap.end() && "Attribute not in ValueEnumerator!"); + AttributeGroupMapType::const_iterator I = AttributeGroupMap.find(PAL); + assert(I != AttributeGroupMap.end() && "Attribute not in ValueEnumerator!"); return I->second; } @@ -135,8 +135,8 @@ public: const std::vector<AttributeSet> &getAttributes() const { return Attribute; } - const std::vector<AttributeSet> &getAttributeSets() const { - return AttributeSets; + const std::vector<AttributeSet> &getAttributeGroups() const { + return AttributeGroups; } /// getGlobalBasicBlockID - This returns the function-specific ID for the |