aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/llvm14/tools/llvm-diff/lib/DiffLog.cpp
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-03-05 13:38:11 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-03-05 13:49:53 +0300
commit9eed360f02de773a5ed2de5d2a3e81fc7f06acfa (patch)
tree744a4054e64eb443073c7c6ad36b29cedcf9c2e6 /contrib/libs/llvm14/tools/llvm-diff/lib/DiffLog.cpp
parentc141a5c40bda2eed1a68b0626ffdae5fd19359a6 (diff)
downloadydb-9eed360f02de773a5ed2de5d2a3e81fc7f06acfa.tar.gz
Intermediate changes
commit_hash:2ec2671384dd8e604d41bc5c52c2f7858e4afea6
Diffstat (limited to 'contrib/libs/llvm14/tools/llvm-diff/lib/DiffLog.cpp')
-rw-r--r--contrib/libs/llvm14/tools/llvm-diff/lib/DiffLog.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/contrib/libs/llvm14/tools/llvm-diff/lib/DiffLog.cpp b/contrib/libs/llvm14/tools/llvm-diff/lib/DiffLog.cpp
deleted file mode 100644
index d31a345d255..00000000000
--- a/contrib/libs/llvm14/tools/llvm-diff/lib/DiffLog.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-//===-- DiffLog.h - Difference Log Builder and accessories ------*- C++ -*-===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-//
-// This header defines the interface to the LLVM difference log builder.
-//
-//===----------------------------------------------------------------------===//
-
-#include "DiffLog.h"
-#include "DiffConsumer.h"
-#include "llvm/ADT/StringRef.h"
-
-using namespace llvm;
-
-LogBuilder::~LogBuilder() {
- if (consumer)
- consumer->logf(*this);
-}
-
-StringRef LogBuilder::getFormat() const { return Format; }
-
-unsigned LogBuilder::getNumArguments() const { return Arguments.size(); }
-const Value *LogBuilder::getArgument(unsigned I) const { return Arguments[I]; }
-
-DiffLogBuilder::~DiffLogBuilder() { consumer.logd(*this); }
-
-void DiffLogBuilder::addMatch(const Instruction *L, const Instruction *R) {
- Diff.push_back(DiffRecord(L, R));
-}
-void DiffLogBuilder::addLeft(const Instruction *L) {
- // HACK: VS 2010 has a bug in the stdlib that requires this.
- Diff.push_back(DiffRecord(L, DiffRecord::second_type(nullptr)));
-}
-void DiffLogBuilder::addRight(const Instruction *R) {
- // HACK: VS 2010 has a bug in the stdlib that requires this.
- Diff.push_back(DiffRecord(DiffRecord::first_type(nullptr), R));
-}
-
-unsigned DiffLogBuilder::getNumLines() const { return Diff.size(); }
-
-DiffChange DiffLogBuilder::getLineKind(unsigned I) const {
- return (Diff[I].first ? (Diff[I].second ? DC_match : DC_left)
- : DC_right);
-}
-const Instruction *DiffLogBuilder::getLeft(unsigned I) const {
- return Diff[I].first;
-}
-const Instruction *DiffLogBuilder::getRight(unsigned I) const {
- return Diff[I].second;
-}