1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

[AVR] Add AVRMCAsmInfo

llvm-svn: 270302
This commit is contained in:
Dylan McKay 2016-05-21 01:06:37 +00:00
parent 06895e862f
commit d7d0f71629
3 changed files with 60 additions and 0 deletions

View File

@ -0,0 +1,28 @@
//===-- AVRMCAsmInfo.cpp - AVR asm properties -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the declarations of the AVRMCAsmInfo properties.
//
//===----------------------------------------------------------------------===//
#include "AVRMCAsmInfo.h"
#include "llvm/ADT/Triple.h"
namespace llvm {
AVRMCAsmInfo::AVRMCAsmInfo(const Triple &TT) {
PointerSize = 2;
CalleeSaveStackSlotSize = 2;
CommentString = ";";
PrivateGlobalPrefix = ".L";
UsesELFSectionDirectiveForBSS = true;
}
} // end of namespace llvm

View File

@ -0,0 +1,31 @@
//===-- AVRMCAsmInfo.h - AVR asm properties ---------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the declaration of the AVRMCAsmInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_AVR_ASM_INFO_H
#define LLVM_AVR_ASM_INFO_H
#include "llvm/MC/MCAsmInfo.h"
namespace llvm {
class Triple;
/// Specifies the format of AVR assembly files.
class AVRMCAsmInfo : public MCAsmInfo {
public:
explicit AVRMCAsmInfo(const Triple &TT);
};
} // end namespace llvm
#endif // LLVM_AVR_ASM_INFO_H

View File

@ -1,5 +1,6 @@
add_llvm_library(LLVMAVRDesc add_llvm_library(LLVMAVRDesc
AVRELFStreamer.cpp AVRELFStreamer.cpp
AVRMCAsmInfo.cpp
AVRTargetStreamer.cpp AVRTargetStreamer.cpp
) )