LLVM how to set Attributes::NoUnwind to Function?
问题 I think this is very simple question, but I can't resolve it. Very sad. So. When I do llc.exe -march=cpp test.bc I get interesting test.cpp with this piece of code: AttrListPtr func__Z2f1i_PAL; { SmallVector<AttributeWithIndex, 4> Attrs; AttributeWithIndex PAWI; PAWI.Index = 4294967295U; PAWI.Attrs = Attribute::None | Attribute::NoUnwind; Attrs.push_back(PAWI); func__Z2f1i_PAL = AttrListPtr::get(Attrs.begin(), Attrs.end()); } But when I want to write string like PAWI.Attrs = Attribute::None |