forked from OSchip/llvm-project
Define an official slot for the new !tbaa.struct metadata tag.
llvm-svn: 163815
This commit is contained in:
parent
68cf9fc45d
commit
3effe81bf7
|
@ -43,7 +43,8 @@ public:
|
|||
MD_tbaa = 1, // "tbaa"
|
||||
MD_prof = 2, // "prof"
|
||||
MD_fpmath = 3, // "fpmath"
|
||||
MD_range = 4 // "range"
|
||||
MD_range = 4, // "range"
|
||||
MD_tbaa_struct = 5 // "tbaa.struct"
|
||||
};
|
||||
|
||||
/// getMDKindID - Return a unique non-zero ID for the specified metadata kind.
|
||||
|
|
|
@ -53,6 +53,11 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
|
|||
unsigned RangeID = getMDKindID("range");
|
||||
assert(RangeID == MD_range && "range kind id drifted");
|
||||
(void)RangeID;
|
||||
|
||||
// Create the 'tbaa.struct' metadata kind.
|
||||
unsigned TBAAStructID = getMDKindID("tbaa.struct");
|
||||
assert(TBAAStructID == MD_tbaa_struct && "tbaa.struct kind id drifted");
|
||||
(void)TBAAStructID;
|
||||
}
|
||||
LLVMContext::~LLVMContext() { delete pImpl; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue