From 0327244ec62f8bfbc5911b3df7253fe6aa9a51cf Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 8 Oct 2012 22:20:14 +0000 Subject: 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 --- lib/VMCore/Attributes.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/VMCore/Attributes.cpp') 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) -- cgit v1.2.3-70-g09d2