summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-10-27 19:19:14 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-10-27 19:19:14 +0000
commitf7d1e7be554530b28921a142ab83f97b4d80c4c9 (patch)
tree20ed5b797711b425cd4e4643ff38cf6f3cfd3206 /llvm/lib/VMCore/LLVMContext.cpp
parentec9ff67e22fe762b6289260cc6a86f64c1ca1686 (diff)
downloadbcm5719-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/VMCore/LLVMContext.cpp')
-rw-r--r--llvm/lib/VMCore/LLVMContext.cpp5
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; }
OpenPOWER on IntegriCloud