summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/LLVMContextImpl.h
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-04 21:46:12 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-02-04 21:46:12 +0000
commit104e402610638a5691e553bdaa10727bae4c288d (patch)
tree7b16dc1521fc9d79097c7edac2f4b2e4398b96b1 /llvm/lib/IR/LLVMContextImpl.h
parent10ba0411887d4fcc497cc383a31acd92a0bed46f (diff)
downloadbcm5719-llvm-104e402610638a5691e553bdaa10727bae4c288d.tar.gz
bcm5719-llvm-104e402610638a5691e553bdaa10727bae4c288d.zip
IR: Define MDNode uniquing sets automatically, NFC
llvm-svn: 228200
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.h')
-rw-r--r--llvm/lib/IR/LLVMContextImpl.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.h b/llvm/lib/IR/LLVMContextImpl.h
index 8ed4e99646b..facc6241f8d 100644
--- a/llvm/lib/IR/LLVMContextImpl.h
+++ b/llvm/lib/IR/LLVMContextImpl.h
@@ -357,9 +357,8 @@ public:
DenseMap<Value *, ValueAsMetadata *> ValuesAsMetadata;
DenseMap<Metadata *, MetadataAsValue *> MetadataAsValues;
- DenseSet<MDTuple *, MDTupleInfo> MDTuples;
- DenseSet<MDLocation *, MDLocationInfo> MDLocations;
- DenseSet<GenericDebugNode *, GenericDebugNodeInfo> GenericDebugNodes;
+#define HANDLE_MDNODE_LEAF(CLASS) DenseSet<CLASS *, CLASS##Info> CLASS##s;
+#include "llvm/IR/Metadata.def"
// MDNodes may be uniqued or not uniqued. When they're not uniqued, they
// aren't in the MDNodeSet, but they're still shared between objects, so no
OpenPOWER on IntegriCloud