Skip to content

Commit 89ade92

Browse files
committed
Rename to something more sensible. No functionality change.
llvm-svn: 174909
1 parent 3d38609 commit 89ade92

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

llvm/include/llvm/IR/Function.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Function : public GlobalValue,
8585
BasicBlockListType BasicBlocks; ///< The basic blocks
8686
mutable ArgumentListType ArgumentList; ///< The formal arguments
8787
ValueSymbolTable *SymTab; ///< Symbol table of args/instructions
88-
AttributeSet AttributeList; ///< Parameter attributes
88+
AttributeSet AttributeSets; ///< Parameter attributes
8989

9090
// HasLazyArguments is stored in Value::SubclassData.
9191
/*bool HasLazyArguments;*/
@@ -162,16 +162,16 @@ class Function : public GlobalValue,
162162

163163
/// getAttributes - Return the attribute list for this Function.
164164
///
165-
const AttributeSet &getAttributes() const { return AttributeList; }
165+
AttributeSet getAttributes() const { return AttributeSets; }
166166

167167
/// setAttributes - Set the attribute list for this Function.
168168
///
169-
void setAttributes(const AttributeSet &attrs) { AttributeList = attrs; }
169+
void setAttributes(AttributeSet attrs) { AttributeSets = attrs; }
170170

171171
/// addFnAttr - Add function attributes to this function.
172172
///
173173
void addFnAttr(Attribute::AttrKind N) {
174-
setAttributes(AttributeList.addAttribute(getContext(),
174+
setAttributes(AttributeSets.addAttribute(getContext(),
175175
AttributeSet::FunctionIndex, N));
176176
}
177177

@@ -193,12 +193,12 @@ class Function : public GlobalValue,
193193

194194
/// @brief Extract the alignment for a call or parameter (0=unknown).
195195
unsigned getParamAlignment(unsigned i) const {
196-
return AttributeList.getParamAlignment(i);
196+
return AttributeSets.getParamAlignment(i);
197197
}
198198

199199
/// @brief Determine if the function does not access memory.
200200
bool doesNotAccessMemory() const {
201-
return AttributeList.hasAttribute(AttributeSet::FunctionIndex,
201+
return AttributeSets.hasAttribute(AttributeSet::FunctionIndex,
202202
Attribute::ReadNone);
203203
}
204204
void setDoesNotAccessMemory() {
@@ -208,7 +208,7 @@ class Function : public GlobalValue,
208208
/// @brief Determine if the function does not access or only reads memory.
209209
bool onlyReadsMemory() const {
210210
return doesNotAccessMemory() ||
211-
AttributeList.hasAttribute(AttributeSet::FunctionIndex,
211+
AttributeSets.hasAttribute(AttributeSet::FunctionIndex,
212212
Attribute::ReadOnly);
213213
}
214214
void setOnlyReadsMemory() {
@@ -217,7 +217,7 @@ class Function : public GlobalValue,
217217

218218
/// @brief Determine if the function cannot return.
219219
bool doesNotReturn() const {
220-
return AttributeList.hasAttribute(AttributeSet::FunctionIndex,
220+
return AttributeSets.hasAttribute(AttributeSet::FunctionIndex,
221221
Attribute::NoReturn);
222222
}
223223
void setDoesNotReturn() {
@@ -226,7 +226,7 @@ class Function : public GlobalValue,
226226

227227
/// @brief Determine if the function cannot unwind.
228228
bool doesNotThrow() const {
229-
return AttributeList.hasAttribute(AttributeSet::FunctionIndex,
229+
return AttributeSets.hasAttribute(AttributeSet::FunctionIndex,
230230
Attribute::NoUnwind);
231231
}
232232
void setDoesNotThrow() {
@@ -235,7 +235,7 @@ class Function : public GlobalValue,
235235

236236
/// @brief Determine if the call cannot be duplicated.
237237
bool cannotDuplicate() const {
238-
return AttributeList.hasAttribute(AttributeSet::FunctionIndex,
238+
return AttributeSets.hasAttribute(AttributeSet::FunctionIndex,
239239
Attribute::NoDuplicate);
240240
}
241241
void setCannotDuplicate() {
@@ -245,7 +245,7 @@ class Function : public GlobalValue,
245245
/// @brief True if the ABI mandates (or the user requested) that this
246246
/// function be in a unwind table.
247247
bool hasUWTable() const {
248-
return AttributeList.hasAttribute(AttributeSet::FunctionIndex,
248+
return AttributeSets.hasAttribute(AttributeSet::FunctionIndex,
249249
Attribute::UWTable);
250250
}
251251
void setHasUWTable() {
@@ -260,13 +260,13 @@ class Function : public GlobalValue,
260260
/// @brief Determine if the function returns a structure through first
261261
/// pointer argument.
262262
bool hasStructRetAttr() const {
263-
return AttributeList.hasAttribute(1, Attribute::StructRet);
263+
return AttributeSets.hasAttribute(1, Attribute::StructRet);
264264
}
265265

266266
/// @brief Determine if the parameter does not alias other parameters.
267267
/// @param n The parameter to check. 1 is the first parameter, 0 is the return
268268
bool doesNotAlias(unsigned n) const {
269-
return AttributeList.hasAttribute(n, Attribute::NoAlias);
269+
return AttributeSets.hasAttribute(n, Attribute::NoAlias);
270270
}
271271
void setDoesNotAlias(unsigned n) {
272272
addAttribute(n, Attribute::NoAlias);
@@ -275,7 +275,7 @@ class Function : public GlobalValue,
275275
/// @brief Determine if the parameter can be captured.
276276
/// @param n The parameter to check. 1 is the first parameter, 0 is the return
277277
bool doesNotCapture(unsigned n) const {
278-
return AttributeList.hasAttribute(n, Attribute::NoCapture);
278+
return AttributeSets.hasAttribute(n, Attribute::NoCapture);
279279
}
280280
void setDoesNotCapture(unsigned n) {
281281
addAttribute(n, Attribute::NoCapture);

0 commit comments

Comments
 (0)