forked from OSchip/llvm-project
Handle string attributes in the AttrBuilder.
llvm-svn: 174834
This commit is contained in:
parent
b1ea9807ea
commit
0a4373058c
|
@ -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