diff options
author | Dylan McKay <dylanmckay34@gmail.com> | 2016-05-21 01:06:37 +0000 |
---|---|---|
committer | Dylan McKay <dylanmckay34@gmail.com> | 2016-05-21 01:06:37 +0000 |
commit | 52ed0aa2032c445c20722c52c75ef1c8e699780a (patch) | |
tree | e4f82490f99adf16cea1cd339887f36506a086be | |
parent | b6e1cc2a9233b4181284ef7b2342405714ce8abb (diff) | |
download | bcm5719-llvm-52ed0aa2032c445c20722c52c75ef1c8e699780a.tar.gz bcm5719-llvm-52ed0aa2032c445c20722c52c75ef1c8e699780a.zip |
[AVR] Add AVRMCAsmInfo
llvm-svn: 270302
-rw-r--r-- | llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp | 28 | ||||
-rw-r--r-- | llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.h | 31 | ||||
-rw-r--r-- | llvm/lib/Target/AVR/MCTargetDesc/CMakeLists.txt | 1 |
3 files changed, 60 insertions, 0 deletions
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp new file mode 100644 index 00000000000..cca3bcc4968 --- /dev/null +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.cpp @@ -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 diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.h b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.h new file mode 100644 index 00000000000..cc2207a3cfa --- /dev/null +++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRMCAsmInfo.h @@ -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 diff --git a/llvm/lib/Target/AVR/MCTargetDesc/CMakeLists.txt b/llvm/lib/Target/AVR/MCTargetDesc/CMakeLists.txt index 1ef14f307df..3cceb49acb3 100644 --- a/llvm/lib/Target/AVR/MCTargetDesc/CMakeLists.txt +++ b/llvm/lib/Target/AVR/MCTargetDesc/CMakeLists.txt @@ -1,5 +1,6 @@ add_llvm_library(LLVMAVRDesc AVRELFStreamer.cpp + AVRMCAsmInfo.cpp AVRTargetStreamer.cpp ) |