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:
Chris Lattner 2009-08-02 04:30:59 +00:00
parent 8d4a0a328a
commit ba8e7401fb
3 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1,4 @@
//===-- SparcTargetAsmInfo.cpp - Sparc asm properties -----------*- C++ -*-===//
//===-- SparcTargetAsmInfo.cpp - Sparc asm properties ---------------------===//
//
// The LLVM Compiler Infrastructure
//
@ -15,7 +15,7 @@
#include "llvm/ADT/SmallVector.h"
using namespace llvm;
SparcELFTargetAsmInfo::SparcELFTargetAsmInfo(const TargetMachine &TM) {
SparcELFTargetAsmInfo::SparcELFTargetAsmInfo() {
Data16bitsDirective = "\t.half\t";
Data32bitsDirective = "\t.word\t";
Data64bitsDirective = 0; // .xword is only supported by V9.

View File

@ -18,11 +18,8 @@
namespace llvm {
// Forward declaration.
class TargetMachine;
struct SparcELFTargetAsmInfo : public TargetAsmInfo {
explicit SparcELFTargetAsmInfo(const TargetMachine &TM);
explicit SparcELFTargetAsmInfo();
};
} // namespace llvm

View File

@ -25,7 +25,7 @@ extern "C" void LLVMInitializeSparcTarget() {
const TargetAsmInfo *SparcTargetMachine::createTargetAsmInfo() const {
// FIXME: Handle Solaris subtarget someday :)
return new SparcELFTargetAsmInfo(*this);
return new SparcELFTargetAsmInfo();
}
/// SparcTargetMachine ctor - Create an ILP32 architecture model