Changes in directory llvm/lib/Target/Sparc:
SparcTargetAsmInfo.cpp added (r1.1) SparcTargetAsmInfo.h added (r1.1) --- Log message: Break out target asm info into separate files. --- Diffs of the changes: (+56 -0) SparcTargetAsmInfo.cpp | 25 +++++++++++++++++++++++++ SparcTargetAsmInfo.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) Index: llvm/lib/Target/Sparc/SparcTargetAsmInfo.cpp diff -c /dev/null llvm/lib/Target/Sparc/SparcTargetAsmInfo.cpp:1.1 *** /dev/null Thu Sep 7 17:05:12 2006 --- llvm/lib/Target/Sparc/SparcTargetAsmInfo.cpp Thu Sep 7 17:05:02 2006 *************** *** 0 **** --- 1,25 ---- + //===-- SparcTargetAsmInfo.cpp - Sparc asm properties -----------*- C++ -*-===// + // + // The LLVM Compiler Infrastructure + // + // This file was developed by James M. Laskey and is distributed under the + // University of Illinois Open Source License. See LICENSE.TXT for details. + // + //===----------------------------------------------------------------------===// + // + // This file contains the declarations of the SparcTargetAsmInfo properties. + // + //===----------------------------------------------------------------------===// + + #include "SparcTargetAsmInfo.h" + + using namespace llvm; + + SparcTargetAsmInfo::SparcTargetAsmInfo(const SparcTargetMachine &TM) { + Data16bitsDirective = "\t.half\t"; + Data32bitsDirective = "\t.word\t"; + Data64bitsDirective = 0; // .xword is only supported by V9. + ZeroDirective = "\t.skip\t"; + CommentString = "!"; + ConstantPoolSection = "\t.section \".rodata\",#alloc\n"; + } Index: llvm/lib/Target/Sparc/SparcTargetAsmInfo.h diff -c /dev/null llvm/lib/Target/Sparc/SparcTargetAsmInfo.h:1.1 *** /dev/null Thu Sep 7 17:05:24 2006 --- llvm/lib/Target/Sparc/SparcTargetAsmInfo.h Thu Sep 7 17:05:02 2006 *************** *** 0 **** --- 1,31 ---- + //=====-- SparcTargetAsmInfo.h - Sparc asm properties ---------*- C++ -*--====// + // + // The LLVM Compiler Infrastructure + // + // This file was developed by James M. Laskey and is distributed under the + // University of Illinois Open Source License. See LICENSE.TXT for details. + // + //===----------------------------------------------------------------------===// + // + // This file contains the declaration of the SparcTargetAsmInfo class. + // + //===----------------------------------------------------------------------===// + + #ifndef SPARCTARGETASMINFO_H + #define SPARCTARGETASMINFO_H + + #include "llvm/Target/TargetAsmInfo.h" + + namespace llvm { + + // Forward declaration. + class SparcTargetMachine; + + struct SparcTargetAsmInfo : public TargetAsmInfo { + SparcTargetAsmInfo(const SparcTargetMachine &TM); + }; + + + } // namespace llvm + + #endif _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits