diff options
author | Julie Hockett <juliehockett@google.com> | 2018-10-16 23:06:53 +0000 |
---|---|---|
committer | Julie Hockett <juliehockett@google.com> | 2018-10-16 23:06:53 +0000 |
commit | f276624e877f0b32196987d821c155e791debba3 (patch) | |
tree | 6d12bf848a47124a09ce68f042ed9c234d454054 /clang-tools-extra/clang-doc/BitcodeWriter.cpp | |
parent | 68049b1a8ecaf4405fc2d67e4a5b2d38fe0d6f2a (diff) | |
download | bcm5719-llvm-f276624e877f0b32196987d821c155e791debba3.tar.gz bcm5719-llvm-f276624e877f0b32196987d821c155e791debba3.zip |
[clang-doc] Add unit tests for bitcode
Adds unit tests for the BitcodeWriter and BitcodeReader libraries.
This is part of a move to convert clang-doc's tests to a more
maintainable unit test framework, with a smaller number of integration
tests to maintain and more granular failure feedback.
Differential Revision: https://reviews.llvm.org/D53082
llvm-svn: 344651
Diffstat (limited to 'clang-tools-extra/clang-doc/BitcodeWriter.cpp')
-rw-r--r-- | clang-tools-extra/clang-doc/BitcodeWriter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/clang-tools-extra/clang-doc/BitcodeWriter.cpp b/clang-tools-extra/clang-doc/BitcodeWriter.cpp index f73724e4fbc..bc990fa7170 100644 --- a/clang-tools-extra/clang-doc/BitcodeWriter.cpp +++ b/clang-tools-extra/clang-doc/BitcodeWriter.cpp @@ -309,10 +309,8 @@ void ClangDocBitcodeWriter::emitRecord(const Location &Loc, RecordId ID) { // FIXME: Assert that the line number is of the appropriate size. Record.push_back(Loc.LineNumber); assert(Loc.Filename.size() < (1U << BitCodeConstants::StringLengthSize)); - // Record.push_back(Loc.Filename.size()); - // Stream.EmitRecordWithBlob(Abbrevs.get(ID), Record, Loc.Filename); - Record.push_back(4); - Stream.EmitRecordWithBlob(Abbrevs.get(ID), Record, "test"); + Record.push_back(Loc.Filename.size()); + Stream.EmitRecordWithBlob(Abbrevs.get(ID), Record, Loc.Filename); } void ClangDocBitcodeWriter::emitRecord(bool Val, RecordId ID) { |