[LLVMdev] Static ctors in llvm::Attribute
rjmccall at apple.com
Tue Feb 7 15:46:50 PST 2012
On Feb 7, 2012, at 2:07 PM, Kostya Serebryany wrote:
> Slightly formatted/commented patch.
This seems to work fine, except that reading a field from a const
AttrConst is not a constant expression in C++03, so the "set"
declarations (ParameterOnly, FunctionOnly, VarArgsIncompatible,
and MutuallyIncompatible) still require a global constructor. You
can split the values into separate 'const uint64_t' declarations and
use those; it makes the header even uglier, but it works.
More information about the llvm-dev