mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
Handle string attributes in the AttrBuilder.
llvm-svn: 174834
This commit is contained in:
parent
f603a9d0bb
commit
3eaebd7f41
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user