rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79773 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2009-08-22 21:03:30 +00:00
parent c2264596b7
commit 2807afa664
13 changed files with 25 additions and 25 deletions

View File

@ -13,9 +13,9 @@
#include "llvm/MC/MCAsmInfo.h"
namespace llvm {
class COFFMCAsmInfo : public MCAsmInfo {
class MCAsmInfoCOFF : public MCAsmInfo {
protected:
explicit COFFMCAsmInfo();
explicit MCAsmInfoCOFF();
};
}

View File

@ -23,8 +23,8 @@ namespace llvm {
class Type;
class Mangler;
struct DarwinMCAsmInfo : public MCAsmInfo {
explicit DarwinMCAsmInfo();
struct MCAsmInfoDarwin : public MCAsmInfo {
explicit MCAsmInfoDarwin();
};
}

View File

@ -1,4 +1,4 @@
//===-- COFFMCAsmInfo.cpp - COFF asm properties -----------------*- C++ -*-===//
//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
@ -16,7 +16,7 @@
#include "llvm/ADT/SmallVector.h"
using namespace llvm;
COFFMCAsmInfo::COFFMCAsmInfo() {
MCAsmInfoCOFF::MCAsmInfoCOFF() {
GlobalPrefix = "_";
LCOMMDirective = "\t.lcomm\t";
COMMDirectiveTakesAlignment = false;

View File

@ -15,7 +15,7 @@
#include "llvm/MC/MCAsmInfoDarwin.h"
using namespace llvm;
DarwinMCAsmInfo::DarwinMCAsmInfo() {
MCAsmInfoDarwin::MCAsmInfoDarwin() {
// Common settings for all Darwin targets.
// Syntax:
GlobalPrefix = "_";

View File

@ -40,7 +40,7 @@ static const char *const arm_asm_table[] = {
0,0
};
ARMDarwinMCAsmInfo::ARMDarwinMCAsmInfo() {
ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
AsmTransCBE = arm_asm_table;
Data64bitsDirective = 0;
CommentString = "@";

View File

@ -18,8 +18,8 @@
namespace llvm {
struct ARMDarwinMCAsmInfo : public DarwinMCAsmInfo {
explicit ARMDarwinMCAsmInfo();
struct ARMMCAsmInfoDarwin : public MCAsmInfoDarwin {
explicit ARMMCAsmInfoDarwin();
};
struct ARMELFMCAsmInfo : public MCAsmInfo {

View File

@ -32,7 +32,7 @@ static const MCAsmInfo *createMCAsmInfo(const Target &T,
Triple TheTriple(TT);
switch (TheTriple.getOS()) {
case Triple::Darwin:
return new ARMDarwinMCAsmInfo();
return new ARMMCAsmInfoDarwin();
default:
return new ARMELFMCAsmInfo();
}

View File

@ -7,14 +7,14 @@
//
//===----------------------------------------------------------------------===//
//
// This file contains the declarations of the DarwinMCAsmInfo properties.
// This file contains the declarations of the MCAsmInfoDarwin properties.
//
//===----------------------------------------------------------------------===//
#include "PPCMCAsmInfo.h"
using namespace llvm;
PPCDarwinMCAsmInfo::PPCDarwinMCAsmInfo(bool is64Bit) {
PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
PCSymbol = ".";
CommentString = ";";
ExceptionsType = ExceptionHandling::Dwarf;

View File

@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
// This file contains the declaration of the DarwinMCAsmInfo class.
// This file contains the declaration of the MCAsmInfoDarwin class.
//
//===----------------------------------------------------------------------===//
@ -18,8 +18,8 @@
namespace llvm {
struct PPCDarwinMCAsmInfo : public DarwinMCAsmInfo {
explicit PPCDarwinMCAsmInfo(bool is64Bit);
struct PPCMCAsmInfoDarwin : public MCAsmInfoDarwin {
explicit PPCMCAsmInfoDarwin(bool is64Bit);
};
struct PPCLinuxMCAsmInfo : public MCAsmInfo {

View File

@ -25,7 +25,7 @@ static const MCAsmInfo *createMCAsmInfo(const Target &T,
Triple TheTriple(TT);
bool isPPC64 = TheTriple.getArch() == Triple::ppc64;
if (TheTriple.getOS() == Triple::Darwin)
return new PPCDarwinMCAsmInfo(isPPC64);
return new PPCMCAsmInfoDarwin(isPPC64);
return new PPCLinuxMCAsmInfo(isPPC64);
}

View File

@ -43,7 +43,7 @@ static const char *const x86_asm_table[] = {
"{cc}", "cc",
0,0};
X86DarwinMCAsmInfo::X86DarwinMCAsmInfo(const Triple &Triple) {
X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) {
AsmTransCBE = x86_asm_table;
AssemblerDialect = AsmWriterFlavor;
@ -101,7 +101,7 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &Triple) {
NonexecutableStackDirective = "\t.section\t.note.GNU-stack,\"\",@progbits";
}
X86COFFMCAsmInfo::X86COFFMCAsmInfo(const Triple &Triple) {
X86MCAsmInfoCOFF::X86MCAsmInfoCOFF(const Triple &Triple) {
AsmTransCBE = x86_asm_table;
AssemblerDialect = AsmWriterFlavor;
}

View File

@ -21,16 +21,16 @@
namespace llvm {
class Triple;
struct X86DarwinMCAsmInfo : public DarwinMCAsmInfo {
explicit X86DarwinMCAsmInfo(const Triple &Triple);
struct X86MCAsmInfoDarwin : public MCAsmInfoDarwin {
explicit X86MCAsmInfoDarwin(const Triple &Triple);
};
struct X86ELFMCAsmInfo : public MCAsmInfo {
explicit X86ELFMCAsmInfo(const Triple &Triple);
};
struct X86COFFMCAsmInfo : public COFFMCAsmInfo {
explicit X86COFFMCAsmInfo(const Triple &Triple);
struct X86MCAsmInfoCOFF : public MCAsmInfoCOFF {
explicit X86MCAsmInfoCOFF(const Triple &Triple);
};
struct X86WinMCAsmInfo : public MCAsmInfo {

View File

@ -27,11 +27,11 @@ static const MCAsmInfo *createMCAsmInfo(const Target &T,
Triple TheTriple(TT);
switch (TheTriple.getOS()) {
case Triple::Darwin:
return new X86DarwinMCAsmInfo(TheTriple);
return new X86MCAsmInfoDarwin(TheTriple);
case Triple::MinGW32:
case Triple::MinGW64:
case Triple::Cygwin:
return new X86COFFMCAsmInfo(TheTriple);
return new X86MCAsmInfoCOFF(TheTriple);
case Triple::Win32:
return new X86WinMCAsmInfo(TheTriple);
default: