diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-13 21:10:44 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-13 21:10:44 +0000 |
commit | 6a4848324bc8ed9789e3d9d99e8715b1667547d3 (patch) | |
tree | 0d7be7c5469f3d78cc75b980930e1f0c72c2d674 /llvm/lib/Bitcode/Writer/ValueEnumerator.h | |
parent | a4f2925bd10233f143ef92a4df18a5f2457df0dd (diff) | |
download | bcm5719-llvm-6a4848324bc8ed9789e3d9d99e8715b1667547d3.tar.gz bcm5719-llvm-6a4848324bc8ed9789e3d9d99e8715b1667547d3.zip |
AsmParser/Bitcode: Add support for MDLocation
This adds assembly and bitcode support for `MDLocation`. The assembly
side is rather big, since this is the first `MDNode` subclass (that
isn't `MDTuple`). Part of PR21433.
(If you're wondering where the mountains of testcase updates are, we
don't need them until I update `DILocation` and `DebugLoc` to actually
use this class.)
llvm-svn: 225830
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.h')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.h b/llvm/lib/Bitcode/Writer/ValueEnumerator.h index e63394fefa5..d363c1be0dd 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.h +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.h @@ -65,6 +65,7 @@ private: typedef DenseMap<const Metadata *, unsigned> MetadataMapType; MetadataMapType MDValueMap; bool HasMDString; + bool HasMDLocation; typedef DenseMap<AttributeSet, unsigned> AttributeGroupMapType; AttributeGroupMapType AttributeGroupMap; @@ -111,6 +112,7 @@ public: unsigned getMetadataID(const Metadata *V) const; bool hasMDString() const { return HasMDString; } + bool hasMDLocation() const { return HasMDLocation; } unsigned getTypeID(Type *T) const { TypeMapType::const_iterator I = TypeMap.find(T); |