diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-03 21:54:14 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-03 21:54:14 +0000 |
commit | 4e4aa7053503a00c29fadaec82e2f399bc9da492 (patch) | |
tree | d96c4bb1895e44a477fa4131e76d73bbbea3836d /llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | |
parent | 37cd4d0f42c31cc0c933069e528e65deaeb94477 (diff) | |
download | llvm-4e4aa7053503a00c29fadaec82e2f399bc9da492.zip llvm-4e4aa7053503a00c29fadaec82e2f399bc9da492.tar.gz llvm-4e4aa7053503a00c29fadaec82e2f399bc9da492.tar.bz2 |
IR: Assembly and bitcode for GenericDebugNode
llvm-svn: 228041
Diffstat (limited to 'llvm/lib/Bitcode/Writer/ValueEnumerator.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Writer/ValueEnumerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp index 2a7916b..24b077b 100644 --- a/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp +++ b/llvm/lib/Bitcode/Writer/ValueEnumerator.cpp @@ -284,7 +284,7 @@ static bool isIntOrIntVectorValue(const std::pair<const Value*, unsigned> &V) { } ValueEnumerator::ValueEnumerator(const Module &M) - : HasMDString(false), HasMDLocation(false) { + : HasMDString(false), HasMDLocation(false), HasGenericDebugNode(false) { if (shouldPreserveBitcodeUseListOrder()) UseListOrders = predictUseListOrder(M); @@ -544,6 +544,7 @@ void ValueEnumerator::EnumerateMetadata(const Metadata *MD) { HasMDString |= isa<MDString>(MD); HasMDLocation |= isa<MDLocation>(MD); + HasGenericDebugNode |= isa<GenericDebugNode>(MD); // Replace the dummy ID inserted above with the correct one. MDValueMap may // have changed by inserting operands, so we need a fresh lookup here. |