[llvm-commits] [llvm] r77864 - in /llvm/trunk/lib/Target/Sparc: SparcTargetAsmInfo.cpp SparcTargetAsmInfo.h SparcTargetMachine.cpp
Chris Lattner
sabre at nondot.org
Sat Aug 1 21:30:59 PDT 2009
Author: lattner
Date: Sat Aug 1 23:30:59 2009
New Revision: 77864
URL: http://llvm.org/viewvc/llvm-project?rev=77864&view=rev
Log:
eliminate TargetMAchine argument to sparc TAI
Modified:
llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.cpp
llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.h
llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.cpp?rev=77864&r1=77863&r2=77864&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.cpp Sat Aug 1 23:30:59 2009
@@ -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.
Modified: llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.h?rev=77864&r1=77863&r2=77864&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.h (original)
+++ llvm/trunk/lib/Target/Sparc/SparcTargetAsmInfo.h Sat Aug 1 23:30:59 2009
@@ -18,11 +18,8 @@
namespace llvm {
- // Forward declaration.
- class TargetMachine;
-
struct SparcELFTargetAsmInfo : public TargetAsmInfo {
- explicit SparcELFTargetAsmInfo(const TargetMachine &TM);
+ explicit SparcELFTargetAsmInfo();
};
} // namespace llvm
Modified: llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp?rev=77864&r1=77863&r2=77864&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcTargetMachine.cpp Sat Aug 1 23:30:59 2009
@@ -25,7 +25,7 @@
const TargetAsmInfo *SparcTargetMachine::createTargetAsmInfo() const {
// FIXME: Handle Solaris subtarget someday :)
- return new SparcELFTargetAsmInfo(*this);
+ return new SparcELFTargetAsmInfo();
}
/// SparcTargetMachine ctor - Create an ILP32 architecture model
More information about the llvm-commits
mailing list