diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-03-24 16:25:51 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2016-03-24 16:25:51 +0000 |
commit | 625fda2714acd03ea7c38887e827735d2af3102f (patch) | |
tree | 78981feb135d3a0259cb221a3b6da08f2dc9d827 /llvm/lib/Bitcode/Writer/ValueEnumerator.h | |
parent | f8ecdf528459b309ea55c593ed2748443d14878e (diff) | |
download | bcm5719-llvm-625fda2714acd03ea7c38887e827735d2af3102f.tar.gz bcm5719-llvm-625fda2714acd03ea7c38887e827735d2af3102f.zip |
BitcodeWriter: Move abbreviation for DILocation; almost NFC
Simplify ValueEnumerator and WriteModuleMetadata by shifting the logic
for the METADATA_LOCATION abbreviation into WriteDILocation.
The only change is that the abbreviation is emitted later in the
bitcode, just before the first `DILocation` record. This shouldn't be
observable though.
llvm-svn: 264302
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 cdb58b1bbff..1b870454ad7 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 HasDILocation; bool HasGenericDINode; bool ShouldPreserveUseListOrder; @@ -124,7 +123,6 @@ public: unsigned numMDs() const { return MDs.size(); } bool hasMDString() const { return HasMDString; } - bool hasDILocation() const { return HasDILocation; } bool hasGenericDINode() const { return HasGenericDINode; } bool shouldPreserveUseListOrder() const { return ShouldPreserveUseListOrder; } |