diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:30:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-02 04:30:59 +0000 |
commit | ba8e7401fb1cc27445a2fef6600335a93879a36d (patch) | |
tree | 906eb6af6dbe0d647d49126949a44deb30a18b66 /lib/Target/Sparc | |
parent | 8d4a0a328a89d1f3c7ad83048e04ace53b6ba781 (diff) | |
download | external_llvm-ba8e7401fb1cc27445a2fef6600335a93879a36d.zip external_llvm-ba8e7401fb1cc27445a2fef6600335a93879a36d.tar.gz external_llvm-ba8e7401fb1cc27445a2fef6600335a93879a36d.tar.bz2 |
eliminate TargetMAchine argument to sparc TAI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcTargetAsmInfo.cpp | 4 | ||||
-rw-r--r-- | lib/Target/Sparc/SparcTargetAsmInfo.h | 5 | ||||
-rw-r--r-- | lib/Target/Sparc/SparcTargetMachine.cpp | 2 |
3 files changed, 4 insertions, 7 deletions
diff --git a/lib/Target/Sparc/SparcTargetAsmInfo.cpp b/lib/Target/Sparc/SparcTargetAsmInfo.cpp index 6c57792..4a5f66c 100644 --- a/lib/Target/Sparc/SparcTargetAsmInfo.cpp +++ b/lib/Target/Sparc/SparcTargetAsmInfo.cpp @@ -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. diff --git a/lib/Target/Sparc/SparcTargetAsmInfo.h b/lib/Target/Sparc/SparcTargetAsmInfo.h index 4c1266a..255a2df 100644 --- a/lib/Target/Sparc/SparcTargetAsmInfo.h +++ b/lib/Target/Sparc/SparcTargetAsmInfo.h @@ -18,11 +18,8 @@ namespace llvm { - // Forward declaration. - class TargetMachine; - struct SparcELFTargetAsmInfo : public TargetAsmInfo { - explicit SparcELFTargetAsmInfo(const TargetMachine &TM); + explicit SparcELFTargetAsmInfo(); }; } // namespace llvm diff --git a/lib/Target/Sparc/SparcTargetMachine.cpp b/lib/Target/Sparc/SparcTargetMachine.cpp index 0605db3..17a419f 100644 --- a/lib/Target/Sparc/SparcTargetMachine.cpp +++ b/lib/Target/Sparc/SparcTargetMachine.cpp @@ -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 |