attr,build: add TOPFRAME attribute (#98)
Go added the TOPFRAME attribute in https://golang.org/cl/169726/. This diff adds the new attribute to avo, and also updates handling of the REFLECTMETHOD attribute.
This commit is contained in:
committed by
Michael McLoughlin
parent
c8004ba627
commit
15d6a9a17e
@@ -14,7 +14,8 @@ func TestAttributeAsm(t *testing.T) {
|
||||
{RODATA | NOSPLIT, "NOSPLIT|RODATA"},
|
||||
{WRAPPER | 16384 | NOPTR, "NOPTR|WRAPPER|16384"},
|
||||
{NEEDCTXT + NOFRAME + TLSBSS, "NEEDCTXT|TLSBSS|NOFRAME"},
|
||||
{REFLECTMETHOD, "1024"}, // REFLECTMETHOD special case due to https://golang.org/issue/29487
|
||||
{REFLECTMETHOD, "REFLECTMETHOD"},
|
||||
{TOPFRAME, "TOPFRAME"},
|
||||
}
|
||||
for _, c := range cases {
|
||||
got := c.Attribute.Asm()
|
||||
|
||||
Reference in New Issue
Block a user