1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

eliminate TargetMAchine argument to sparc TAI

llvm-svn: 77864
This commit is contained in:
Chris Lattner 2009-08-02 04:30:59 +00:00
parent b5ceb50677
commit 65a4fca21d
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