diff options
-rw-r--r-- | clang-tools-extra/clang-doc/BitcodeReader.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/clang-tools-extra/clang-doc/BitcodeReader.cpp b/clang-tools-extra/clang-doc/BitcodeReader.cpp index 2e064ac..92674c5 100644 --- a/clang-tools-extra/clang-doc/BitcodeReader.cpp +++ b/clang-tools-extra/clang-doc/BitcodeReader.cpp @@ -44,15 +44,6 @@ static llvm::Error decodeRecord(const Record &R, bool &Field, return llvm::Error::success(); } -static llvm::Error decodeRecord(const Record &R, int &Field, - llvm::StringRef Blob) { - if (R[0] > INT_MAX) - return llvm::createStringError(llvm::inconvertibleErrorCode(), - "integer too large to parse"); - Field = static_cast<int>(R[0]); - return llvm::Error::success(); -} - static llvm::Error decodeRecord(const Record &R, AccessSpecifier &Field, llvm::StringRef Blob) { switch (R[0]) { @@ -433,11 +424,6 @@ template <> llvm::Expected<CommentInfo *> getCommentInfo(CommentInfo *I) { return I->Children.back().get(); } -template <> -llvm::Expected<CommentInfo *> getCommentInfo(std::unique_ptr<CommentInfo> &I) { - return getCommentInfo(I.get()); -} - // When readSubBlock encounters a TypeInfo sub-block, it calls addTypeInfo on // the parent block to set it. The template specializations define what to do // for each supported parent block. |