2014-09-16 17:18:23 +08:00
|
|
|
//===-- ARMAsmBackendWinCOFF.h - ARM Asm Backend WinCOFF --------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// 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
|
2014-09-16 17:18:23 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLVM_LIB_TARGET_ARM_ARMASMBACKENDWINCOFF_H
|
|
|
|
#define LLVM_LIB_TARGET_ARM_ARMASMBACKENDWINCOFF_H
|
|
|
|
|
2016-01-28 03:29:42 +08:00
|
|
|
#include "ARMAsmBackend.h"
|
2017-10-28 06:12:46 +08:00
|
|
|
#include "llvm/MC/MCObjectWriter.h"
|
2014-09-16 17:18:23 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
class ARMAsmBackendWinCOFF : public ARMAsmBackend {
|
|
|
|
public:
|
2018-01-03 21:46:21 +08:00
|
|
|
ARMAsmBackendWinCOFF(const Target &T, const MCSubtargetInfo &STI)
|
2018-05-22 01:57:19 +08:00
|
|
|
: ARMAsmBackend(T, STI, support::little) {}
|
2018-05-22 03:20:29 +08:00
|
|
|
std::unique_ptr<MCObjectTargetWriter>
|
|
|
|
createObjectTargetWriter() const override {
|
|
|
|
return createARMWinCOFFObjectWriter(/*Is64Bit=*/false);
|
2014-09-16 17:18:23 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|