1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/lib/Target/AVR/MCTargetDesc/AVRTargetStreamer.h
Dylan McKay 880b08eb60 [AVR] Enable the '__do_copy_data' function
Also enables '__do_clear_bss'.

These functions are automaticalled called by the CRT if they are
declared.

We need these to be called otherwise RAM will start completely
uninitialised, even though we need to copy RAM variables from progmem to
RAM.

llvm-svn: 312905
2017-09-11 10:32:51 +00:00

35 lines
892 B
C++

//===-- AVRTargetStreamer.h - AVR Target Streamer --------------*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_AVR_TARGET_STREAMER_H
#define LLVM_AVR_TARGET_STREAMER_H
#include "llvm/MC/MCELFStreamer.h"
namespace llvm {
class MCStreamer;
/// A generic AVR target output stream.
class AVRTargetStreamer : public MCTargetStreamer {
public:
explicit AVRTargetStreamer(MCStreamer &S);
void finish() override;
};
/// A target streamer for textual AVR assembly code.
class AVRTargetAsmStreamer : public AVRTargetStreamer {
public:
explicit AVRTargetAsmStreamer(MCStreamer &S);
};
} // end namespace llvm
#endif // LLVM_AVR_TARGET_STREAMER_H