mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
eliminate TargetMAchine argument to sparc TAI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
//===-- SparcTargetAsmInfo.cpp - Sparc asm properties -----------*- C++ -*-===//
|
//===-- SparcTargetAsmInfo.cpp - Sparc asm properties ---------------------===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -15,7 +15,7 @@
|
|||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM) {
|
SparcELFTargetAsmInfo::SparcELFTargetAsmInfo() {
|
||||||
Data16bitsDirective = "\t.half\t";
|
Data16bitsDirective = "\t.half\t";
|
||||||
Data32bitsDirective = "\t.word\t";
|
Data32bitsDirective = "\t.word\t";
|
||||||
Data64bitsDirective = 0; // .xword is only supported by V9.
|
Data64bitsDirective = 0; // .xword is only supported by V9.
|
||||||
|
@ -18,11 +18,8 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
// Forward declaration.
|
|
||||||
class TargetMachine;
|
|
||||||
|
|
||||||
struct SparcELFTargetAsmInfo : public TargetAsmInfo {
|
struct SparcELFTargetAsmInfo : public TargetAsmInfo {
|
||||||
explicit SparcELFTargetAsmInfo(const TargetMachine &TM);
|
explicit SparcELFTargetAsmInfo();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace llvm
|
} // namespace llvm
|
||||||
|
@ -25,7 +25,7 @@ extern "C" void LLVMInitializeSparcTarget() {
|
|||||||
|
|
||||||
const TargetAsmInfo *SparcTargetMachine::createTargetAsmInfo() const {
|
const TargetAsmInfo *SparcTargetMachine::createTargetAsmInfo() const {
|
||||||
// FIXME: Handle Solaris subtarget someday :)
|
// FIXME: Handle Solaris subtarget someday :)
|
||||||
return new SparcELFTargetAsmInfo(*this);
|
return new SparcELFTargetAsmInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// SparcTargetMachine ctor - Create an ILP32 architecture model
|
/// SparcTargetMachine ctor - Create an ILP32 architecture model
|
||||||
|
Reference in New Issue
Block a user