diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-03-24 16:30:18 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-03-24 16:30:18 +0000 |
commit | a5e25a5563ff6f477b97f2b7ff62570ab61df845 (patch) | |
tree | 41bf0a283dcba3b1f019a8ea4942c53a8335cf67 /llvm/lib/Bitcode/Writer/ValueEnumerator.h | |
parent | 625fda2714acd03ea7c38887e827735d2af3102f (diff) | |
download | bcm5719-llvm-a5e25a5563ff6f477b97f2b7ff62570ab61df845.tar.gz bcm5719-llvm-a5e25a5563ff6f477b97f2b7ff62570ab61df845.zip |
BitcodeWriter: Move abbreviation for GenericDINode; almost NFC
Simplify ValueEnumerator and WriteModuleMetadata by shifting the logic
for the METADATA_GENERIC_DEBUG abbreviation into WriteGenericDINode.
(This is just like r264302, but for GenericDINode.)
The only change is that the abbreviation is emitted later in the
bitcode, just before the first `GenericDINode` record. This shouldn't
be observable though.
llvm-svn: 264303
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.h b/llvm/lib/Bitcode/Writer/ValueEnumerator.h index 1b870454ad7..7665210d014 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.h +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.h @@ -67,7 +67,6 @@ private: typedef DenseMap<const Metadata *, unsigned> MetadataMapType; MetadataMapType MetadataMap; bool HasMDString; - bool HasGenericDINode; bool ShouldPreserveUseListOrder; typedef DenseMap<AttributeSet, unsigned> AttributeGroupMapType; @@ -123,7 +122,6 @@ public: unsigned numMDs() const { return MDs.size(); } bool hasMDString() const { return HasMDString; } - bool hasGenericDINode() const { return HasGenericDINode; } bool shouldPreserveUseListOrder() const { return ShouldPreserveUseListOrder; } |