これは非常に単純な質問だと思いますが、解決できません。とても悲しい。そう。私がする時
llc.exe -march=cpp test.bc
次のコードで興味深い test.cpp を取得します。
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());
}
しかし、次のような文字列を書きたいときPAWI.Attrs = Attribute::None | Attribute::NoUnwind;
私のプロジェクトでエラーが発生しました IntelliSense: no operator "=" matches these operands operand types are: llvm::Attributes = int
何をする必要がありますか? 必要なすべてのヘッダーが含まれています。[OS - Windows 7 x64、LLVM - 3.2]