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:
parent
06895e862f
commit
d7d0f71629
28
lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
Normal file
28
lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp
Normal 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
|
31
lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.h
Normal file
31
lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.h
Normal 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
|
@ -1,5 +1,6 @@
|
|||||||
add_llvm_library(LLVMAVRDesc
|
add_llvm_library(LLVMAVRDesc
|
||||||
AVRELFStreamer.cpp
|
AVRELFStreamer.cpp
|
||||||
|
AVRMCAsmInfo.cpp
|
||||||
AVRTargetStreamer.cpp
|
AVRTargetStreamer.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user