projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f74220
)
Handle string attributes in the AttrBuilder.
author
Bill Wendling
<isanbard@gmail.com>
Sun, 10 Feb 2013 10:13:23 +0000
(10:13 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sun, 10 Feb 2013 10:13:23 +0000
(10:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174834
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Attributes.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Attributes.cpp
b/lib/IR/Attributes.cpp
index 04e95ef6b097dfeae06bd840e51469d88b062400..e64603c2f59cadc35fa3e22b0a88c7b41f396b00 100644
(file)
--- a/
lib/IR/Attributes.cpp
+++ b/
lib/IR/Attributes.cpp
@@
-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);