mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 01:38:03 +00:00
Handle string attributes in the AttrBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174834 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0f7422057e
commit
09ed9101c8
@ -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…
x
Reference in New Issue
Block a user