1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Handle string attributes in the AttrBuilder.

llvm-svn: 174834
This commit is contained in:
Bill Wendling 2013-02-10 10:13:23 +00:00
parent f603a9d0bb
commit 3eaebd7f41

View File

@ -879,7 +879,11 @@ AttrBuilder &AttrBuilder::addAttribute(Attribute::AttrKind Val) {
}
AttrBuilder &AttrBuilder::addAttribute(Attribute Attr) {
// FIXME: Handle string attributes.
if (Attr.isStringAttribute()) {
addAttribute(Attr.getKindAsString(), Attr.getValueAsString());
return *this;
}
Attribute::AttrKind Kind = Attr.getKindAsEnum();
Attrs.insert(Kind);