mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 17:32:36 +00:00
rename COFFMCAsmInfo -> MCAsmInfoCOFF, likewise for darwin.
llvm-svn: 79773
This commit is contained in:
parent
6967c57a4b
commit
384b7d24a9
@ -13,9 +13,9 @@
|
||||
#include "llvm/MC/MCAsmInfo.h"
|
||||
|
||||
namespace llvm {
|
||||
class COFFMCAsmInfo : public MCAsmInfo {
|
||||
class MCAsmInfoCOFF : public MCAsmInfo {
|
||||
protected:
|
||||
explicit COFFMCAsmInfo();
|
||||
explicit MCAsmInfoCOFF();
|
||||
|
||||
};
|
||||
}
|
||||
|
@ -23,8 +23,8 @@ namespace llvm {
|
||||
class Type;
|
||||
class Mangler;
|
||||
|
||||
struct DarwinMCAsmInfo : public MCAsmInfo {
|
||||
explicit DarwinMCAsmInfo();
|
||||
struct MCAsmInfoDarwin : public MCAsmInfo {
|
||||
explicit MCAsmInfoDarwin();
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "llvm/MC/MCAsmInfoDarwin.h"
|
||||
using namespace llvm;
|
||||
|
||||
DarwinMCAsmInfo::DarwinMCAsmInfo() {
|
||||
MCAsmInfoDarwin::MCAsmInfoDarwin() {
|
||||
// Common settings for all Darwin targets.
|
||||
// Syntax:
|
||||
GlobalPrefix = "_";
|
||||
|
@ -40,7 +40,7 @@ static const char *const arm_asm_table[] = {
|
||||
0,0
|
||||
};
|
||||
|
||||
ARMDarwinMCAsmInfo::ARMDarwinMCAsmInfo() {
|
||||
ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
|
||||
AsmTransCBE = arm_asm_table;
|
||||
Data64bitsDirective = 0;
|
||||
CommentString = "@";
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
namespace llvm {
|
||||
|
||||
struct ARMDarwinMCAsmInfo : public DarwinMCAsmInfo {
|
||||
explicit ARMDarwinMCAsmInfo();
|
||||
struct ARMMCAsmInfoDarwin : public MCAsmInfoDarwin {
|
||||
explicit ARMMCAsmInfoDarwin();
|
||||
};
|
||||
|
||||
struct ARMELFMCAsmInfo : public MCAsmInfo {
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user