diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-27 19:19:14 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-10-27 19:19:14 +0000 |
commit | f7d1e7be554530b28921a142ab83f97b4d80c4c9 (patch) | |
tree | 20ed5b797711b425cd4e4643ff38cf6f3cfd3206 /llvm/lib | |
parent | ec9ff67e22fe762b6289260cc6a86f64c1ca1686 (diff) | |
download | bcm5719-llvm-f7d1e7be554530b28921a142ab83f97b4d80c4c9.tar.gz bcm5719-llvm-f7d1e7be554530b28921a142ab83f97b4d80c4c9.zip |
Add a pinned metadata name for fpaccuracy, and document it
llvm-svn: 143135
Diffstat (limited to 'llvm/lib')
-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 3ed2c2c7e9e..e1a9b177243 100644 --- a/llvm/lib/VMCore/LLVMContext.cpp +++ b/llvm/lib/VMCore/LLVMContext.cpp @@ -43,6 +43,11 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) { // Create the 'prof' metadata kind. unsigned ProfID = getMDKindID("prof"); assert(ProfID == MD_prof && "prof kind id drifted"); (void)ProfID; + + // Create the 'fpaccuracy' metadata kind. + unsigned FPAccuracyID = getMDKindID("fpaccuracy"); + assert(FPAccuracyID == MD_fpaccuracy && "fpaccuracy kind id drifted"); + (void)FPAccuracyID; } LLVMContext::~LLVMContext() { delete pImpl; } |