mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user