diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-28 20:37:22 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-12-28 20:37:22 +0000 |
commit | 0ece61756a2d3ee2b951afd73d3da62dfc506d08 (patch) | |
tree | c0cc71dfa9ba3dbb35ee34e3381609cd86360196 /tools/llvm-bcanalyzer | |
parent | 6c8d9bce0325cb812d70a7d444ddf9aa38859be7 (diff) |
Revert "Add an index for Module Metadata record in the bitcode"
This reverts commit a0ca6ae2d38339e4ede0dfa588086fc23d87e836. Revert at
Mehdi's request as it is breaking bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-bcanalyzer')
-rw-r--r-- | tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp index 3220063275b0..e494343bf879 100644 --- a/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp +++ b/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp @@ -353,8 +353,6 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID, STRINGIFY_CODE(METADATA, OBJC_PROPERTY) STRINGIFY_CODE(METADATA, IMPORTED_ENTITY) STRINGIFY_CODE(METADATA, MODULE) - STRINGIFY_CODE(METADATA, INDEX_OFFSET) - STRINGIFY_CODE(METADATA, INDEX) } case bitc::METADATA_KIND_BLOCK_ID: switch (CodeID) { @@ -516,9 +514,6 @@ static bool ParseBlock(BitstreamCursor &Stream, BitstreamBlockInfo &BlockInfo, SmallVector<uint64_t, 64> Record; - // Keep the offset to the metadata index if seen. - uint64_t MetadataIndexOffset = 0; - // Read all the records for this block. while (1) { if (Stream.AtEndOfStream()) @@ -605,22 +600,6 @@ static bool ParseBlock(BitstreamCursor &Stream, BitstreamBlockInfo &BlockInfo, for (unsigned i = 0, e = Record.size(); i != e; ++i) outs() << " op" << i << "=" << (int64_t)Record[i]; - // If we found a metadata index, let's verify that we had an offset before - // and validate its forward reference offset was correct! - if (BlockID == bitc::METADATA_BLOCK_ID) { - if (Code == bitc::METADATA_INDEX_OFFSET) { - MetadataIndexOffset = Stream.GetCurrentBitNo() + Record[0]; - } - if (Code == bitc::METADATA_INDEX) { - outs() << " (offset "; - if (MetadataIndexOffset == RecordStartBit) - outs() << "match)"; - else - outs() << "mismatch: " << MetadataIndexOffset << " vs " - << RecordStartBit << ")"; - } - } - // If we found a module hash, let's verify that it matches! if (BlockID == bitc::MODULE_BLOCK_ID && Code == bitc::MODULE_CODE_HASH) { if (Record.size() != 5) |