summaryrefslogtreecommitdiff
path: root/lib/VMCore
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-08 22:20:14 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-08 22:20:14 +0000
commit0327244ec62f8bfbc5911b3df7253fe6aa9a51cf (patch)
tree838feea06fb2384d32c456e0c6008c257ec0395f /lib/VMCore
parentc92b8aa79f4a2cd16f7b674189e425c2c367e886 (diff)
downloadllvm-0327244ec62f8bfbc5911b3df7253fe6aa9a51cf.tar.gz
llvm-0327244ec62f8bfbc5911b3df7253fe6aa9a51cf.tar.bz2
llvm-0327244ec62f8bfbc5911b3df7253fe6aa9a51cf.tar.xz
Convert the LLVM parser over to using the new Attributes::Builder to build its
attributes objects. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Attributes.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index e20fa6b432..1fcebdf5ba 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -33,6 +33,12 @@ Attributes::Attributes(Attribute::AttrConst Val) : Attrs(Val.v) {}
Attributes::Attributes(AttributesImpl *A) : Attrs(A->Bits) {}
+// FIXME: This is temporary until we have implemented the uniquified version of
+// AttributesImpl.
+Attributes Attributes::get(Attributes::Builder &B) {
+ return Attributes(B.Bits);
+}
+
Attributes Attributes::get(LLVMContext &Context, Attributes::Builder &B) {
// If there are no attributes, return an empty Attributes class.
if (B.Bits == 0)