diff options
Diffstat (limited to 'clang-tools-extra/clang-doc/BitcodeReader.h')
| -rw-r--r-- | clang-tools-extra/clang-doc/BitcodeReader.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-doc/BitcodeReader.h b/clang-tools-extra/clang-doc/BitcodeReader.h index c0cf24a1783..aaf25257c85 100644 --- a/clang-tools-extra/clang-doc/BitcodeReader.h +++ b/clang-tools-extra/clang-doc/BitcodeReader.h @@ -19,6 +19,7 @@ #include "BitcodeWriter.h" #include "Representation.h" #include "clang/AST/AST.h" +#include "llvm/ADT/Optional.h" #include "llvm/ADT/SmallVector.h" #include "llvm/Bitcode/BitstreamReader.h" @@ -31,7 +32,7 @@ public: ClangDocBitcodeReader(llvm::BitstreamCursor &Stream) : Stream(Stream) {} // Main entry point, calls readBlock to read each block in the given stream. - std::vector<std::unique_ptr<Info>> readBitcode(); + llvm::Expected<std::vector<std::unique_ptr<Info>>> readBitcode(); private: enum class Cursor { BadBlock = 1, Record, BlockEnd, BlockBegin }; |

