diff options
| author | Dan Gohman <gohman@apple.com> | 2012-09-13 17:56:17 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2012-09-13 17:56:17 +0000 |
| commit | 3effe81bf7075c894710a279280961c6c028cf57 (patch) | |
| tree | d22da91e9e61ccaf0d1fdeaeb1f826d631769469 /llvm/lib/VMCore | |
| parent | 68cf9fc45df9147308778a5d4557deeb508bd9f2 (diff) | |
| download | bcm5719-llvm-3effe81bf7075c894710a279280961c6c028cf57.tar.gz bcm5719-llvm-3effe81bf7075c894710a279280961c6c028cf57.zip | |
Define an official slot for the new !tbaa.struct metadata tag.
llvm-svn: 163815
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/LLVMContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/LLVMContext.cpp b/llvm/lib/VMCore/LLVMContext.cpp index f07f0b39392..2446ec996d0 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/lib/VMCore/LLVMContext.cpp @@ -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; } |

