llvm.org GIT mirror llvm / b54834b
Define an official slot for the new !tbaa.struct metadata tag. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163815 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 7 years ago
2 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
4242 MD_tbaa = 1, // "tbaa"
4343 MD_prof = 2, // "prof"
4444 MD_fpmath = 3, // "fpmath"
45 MD_range = 4 // "range"
45 MD_range = 4, // "range"
46 MD_tbaa_struct = 5 // "tbaa.struct"
4647 };
4748
4849 /// getMDKindID - Return a unique non-zero ID for the specified metadata kind.
5252 unsigned RangeID = getMDKindID("range");
5353 assert(RangeID == MD_range && "range kind id drifted");
5454 (void)RangeID;
55
56 // Create the 'tbaa.struct' metadata kind.
57 unsigned TBAAStructID = getMDKindID("tbaa.struct");
58 assert(TBAAStructID == MD_tbaa_struct && "tbaa.struct kind id drifted");
59 (void)TBAAStructID;
5560 }
5661 LLVMContext::~LLVMContext() { delete pImpl; }
5762