diff options
author | Devang Patel <dpatel@apple.com> | 2008-09-25 21:00:45 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-09-25 21:00:45 +0000 |
commit | 0598866c052147c31b808391f58434ce3dbfb838 (patch) | |
tree | 5a33037d52126e5eb635d76afe643d9b854694a1 /lib/Bitcode/Writer/ValueEnumerator.h | |
parent | 32b952a2a60d1091e0e17bb6ce788cd1d41e6f8b (diff) |
Large mechanical patch.
s/ParamAttr/Attribute/g
s/PAList/AttrList/g
s/FnAttributeWithIndex/AttributeWithIndex/g
s/FnAttr/Attribute/g
This sets the stage
- to implement function notes as function attributes and
- to distinguish between function attributes and return value attributes.
This requires corresponding changes in llvm-gcc and clang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r-- | lib/Bitcode/Writer/ValueEnumerator.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Bitcode/Writer/ValueEnumerator.h b/lib/Bitcode/Writer/ValueEnumerator.h index 405aec7016..bb0324b1c5 100644 --- a/lib/Bitcode/Writer/ValueEnumerator.h +++ b/lib/Bitcode/Writer/ValueEnumerator.h @@ -25,7 +25,7 @@ class Value; class BasicBlock; class Function; class Module; -class PAListPtr; +class AttrListPtr; class TypeSymbolTable; class ValueSymbolTable; @@ -45,9 +45,9 @@ private: ValueMapType ValueMap; ValueList Values; - typedef DenseMap<void*, unsigned> ParamAttrMapType; - ParamAttrMapType ParamAttrMap; - std::vector<PAListPtr> ParamAttrs; + typedef DenseMap<void*, unsigned> AttributeMapType; + AttributeMapType AttributeMap; + std::vector<AttrListPtr> Attributes; /// BasicBlocks - This contains all the basic blocks for the currently /// incorporated function. Their reverse mapping is stored in ValueMap. @@ -76,10 +76,10 @@ public: return I->second-1; } - unsigned getParamAttrID(const PAListPtr &PAL) const { + unsigned getAttributeID(const AttrListPtr &PAL) const { if (PAL.isEmpty()) return 0; // Null maps to zero. - ParamAttrMapType::const_iterator I = ParamAttrMap.find(PAL.getRawPointer()); - assert(I != ParamAttrMap.end() && "ParamAttr not in ValueEnumerator!"); + AttributeMapType::const_iterator I = AttributeMap.find(PAL.getRawPointer()); + assert(I != AttributeMap.end() && "Attribute not in ValueEnumerator!"); return I->second; } @@ -95,8 +95,8 @@ public: const std::vector<const BasicBlock*> &getBasicBlocks() const { return BasicBlocks; } - const std::vector<PAListPtr> &getParamAttrs() const { - return ParamAttrs; + const std::vector<AttrListPtr> &getAttributes() const { + return Attributes; } /// PurgeAggregateValues - If there are any aggregate values at the end of the @@ -116,7 +116,7 @@ private: void EnumerateValue(const Value *V); void EnumerateType(const Type *T); void EnumerateOperandType(const Value *V); - void EnumerateParamAttrs(const PAListPtr &PAL); + void EnumerateAttributes(const AttrListPtr &PAL); void EnumerateTypeSymbolTable(const TypeSymbolTable &ST); void EnumerateValueSymbolTable(const ValueSymbolTable &ST); |