[llvm] r228200 - IR: Define MDNode uniquing sets automatically, NFC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Wed Feb 4 13:46:12 PST 2015
Author: dexonsmith
Date: Wed Feb 4 15:46:12 2015
New Revision: 228200
URL: http://llvm.org/viewvc/llvm-project?rev=228200&view=rev
Log:
IR: Define MDNode uniquing sets automatically, NFC
Modified:
llvm/trunk/lib/IR/LLVMContextImpl.h
Modified: llvm/trunk/lib/IR/LLVMContextImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/LLVMContextImpl.h?rev=228200&r1=228199&r2=228200&view=diff
==============================================================================
--- llvm/trunk/lib/IR/LLVMContextImpl.h (original)
+++ llvm/trunk/lib/IR/LLVMContextImpl.h Wed Feb 4 15:46:12 2015
@@ -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
More information about the llvm-commits
mailing list