aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h')
-rw-r--r--contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h136
1 files changed, 68 insertions, 68 deletions
diff --git a/contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h b/contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h
index 112bb19b93..feccc9d3c7 100644
--- a/contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h
+++ b/contrib/libs/llvm12/include/llvm/MC/MCWasmObjectWriter.h
@@ -1,72 +1,72 @@
-#pragma once
-
-#ifdef __GNUC__
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunused-parameter"
-#endif
-
-//===-- llvm/MC/MCWasmObjectWriter.h - Wasm Object Writer -------*- 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
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef LLVM_MC_MCWASMOBJECTWRITER_H
-#define LLVM_MC_MCWASMOBJECTWRITER_H
-
-#include "llvm/MC/MCObjectWriter.h"
-#include <memory>
-
-namespace llvm {
-
-class MCFixup;
-class MCValue;
-class raw_pwrite_stream;
-
-class MCWasmObjectTargetWriter : public MCObjectTargetWriter {
- const unsigned Is64Bit : 1;
- const unsigned IsEmscripten : 1;
-
-protected:
- explicit MCWasmObjectTargetWriter(bool Is64Bit_, bool IsEmscripten);
-
-public:
- virtual ~MCWasmObjectTargetWriter();
-
- Triple::ObjectFormatType getFormat() const override { return Triple::Wasm; }
- static bool classof(const MCObjectTargetWriter *W) {
- return W->getFormat() == Triple::Wasm;
- }
-
- virtual unsigned getRelocType(const MCValue &Target,
- const MCFixup &Fixup) const = 0;
-
- /// \name Accessors
- /// @{
- bool is64Bit() const { return Is64Bit; }
- bool isEmscripten() const { return IsEmscripten; }
- /// @}
-};
-
-/// Construct a new Wasm writer instance.
-///
-/// \param MOTW - The target specific Wasm writer subclass.
-/// \param OS - The stream to write to.
-/// \returns The constructed object writer.
-std::unique_ptr<MCObjectWriter>
-createWasmObjectWriter(std::unique_ptr<MCWasmObjectTargetWriter> MOTW,
- raw_pwrite_stream &OS);
-
+#pragma once
+
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wunused-parameter"
+#endif
+
+//===-- llvm/MC/MCWasmObjectWriter.h - Wasm Object Writer -------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_MC_MCWASMOBJECTWRITER_H
+#define LLVM_MC_MCWASMOBJECTWRITER_H
+
+#include "llvm/MC/MCObjectWriter.h"
+#include <memory>
+
+namespace llvm {
+
+class MCFixup;
+class MCValue;
+class raw_pwrite_stream;
+
+class MCWasmObjectTargetWriter : public MCObjectTargetWriter {
+ const unsigned Is64Bit : 1;
+ const unsigned IsEmscripten : 1;
+
+protected:
+ explicit MCWasmObjectTargetWriter(bool Is64Bit_, bool IsEmscripten);
+
+public:
+ virtual ~MCWasmObjectTargetWriter();
+
+ Triple::ObjectFormatType getFormat() const override { return Triple::Wasm; }
+ static bool classof(const MCObjectTargetWriter *W) {
+ return W->getFormat() == Triple::Wasm;
+ }
+
+ virtual unsigned getRelocType(const MCValue &Target,
+ const MCFixup &Fixup) const = 0;
+
+ /// \name Accessors
+ /// @{
+ bool is64Bit() const { return Is64Bit; }
+ bool isEmscripten() const { return IsEmscripten; }
+ /// @}
+};
+
+/// Construct a new Wasm writer instance.
+///
+/// \param MOTW - The target specific Wasm writer subclass.
+/// \param OS - The stream to write to.
+/// \returns The constructed object writer.
+std::unique_ptr<MCObjectWriter>
+createWasmObjectWriter(std::unique_ptr<MCWasmObjectTargetWriter> MOTW,
+ raw_pwrite_stream &OS);
+
std::unique_ptr<MCObjectWriter>
createWasmDwoObjectWriter(std::unique_ptr<MCWasmObjectTargetWriter> MOTW,
raw_pwrite_stream &OS, raw_pwrite_stream &DwoOS);
-} // namespace llvm
-
-#endif
-
-#ifdef __GNUC__
-#pragma GCC diagnostic pop
-#endif
+} // namespace llvm
+
+#endif
+
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif