Removing some unused functionality.

llvm-svn: 202727
This commit is contained in:
Aaron Ballman 2014-03-03 16:21:37 +00:00
parent 6419e98ee1
commit 3efb895bb1
2 changed files with 1 additions and 14 deletions

View File

@ -705,10 +705,7 @@ public:
: pool(factory), list(0) {
}
ParsedAttributes(ParsedAttributes &attrs)
: pool(attrs.pool), list(attrs.list) {
attrs.list = 0;
}
ParsedAttributes(const ParsedAttributes &) = delete;
AttributePool &getPool() const { return pool; }

View File

@ -709,22 +709,12 @@ public:
void addAttributes(AttributeList *AL) {
Attrs.addAll(AL);
}
void setAttributes(AttributeList *AL) {
Attrs.set(AL);
}
bool hasAttributes() const { return !Attrs.empty(); }
ParsedAttributes &getAttributes() { return Attrs; }
const ParsedAttributes &getAttributes() const { return Attrs; }
/// \brief Return the current attribute list and remove them from
/// the DeclSpec so that it doesn't own them.
ParsedAttributes takeAttributes() {
// The non-const "copy" constructor clears the operand automatically.
return Attrs;
}
void takeAttributesFrom(ParsedAttributes &attrs) {
Attrs.takeAllFrom(attrs);
}