mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 16:29:20 +00:00
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:
parent
c2264596b7
commit
2807afa664
@ -13,9 +13,9 @@
|
|||||||
#include "llvm/MC/MCAsmInfo.h"
|
#include "llvm/MC/MCAsmInfo.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class COFFMCAsmInfo : public MCAsmInfo {
|
class MCAsmInfoCOFF : public MCAsmInfo {
|
||||||
protected:
|
protected:
|
||||||
explicit COFFMCAsmInfo();
|
explicit MCAsmInfoCOFF();
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -23,8 +23,8 @@ namespace llvm {
|
|||||||
class Type;
|
class Type;
|
||||||
class Mangler;
|
class Mangler;
|
||||||
|
|
||||||
struct DarwinMCAsmInfo : public MCAsmInfo {
|
struct MCAsmInfoDarwin : public MCAsmInfo {
|
||||||
explicit DarwinMCAsmInfo();
|
explicit MCAsmInfoDarwin();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//===-- COFFMCAsmInfo.cpp - COFF asm properties -----------------*- C++ -*-===//
|
//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
|
||||||
//
|
//
|
||||||
// The LLVM Compiler Infrastructure
|
// The LLVM Compiler Infrastructure
|
||||||
//
|
//
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
COFFMCAsmInfo::COFFMCAsmInfo() {
|
MCAsmInfoCOFF::MCAsmInfoCOFF() {
|
||||||
GlobalPrefix = "_";
|
GlobalPrefix = "_";
|
||||||
LCOMMDirective = "\t.lcomm\t";
|
LCOMMDirective = "\t.lcomm\t";
|
||||||
COMMDirectiveTakesAlignment = false;
|
COMMDirectiveTakesAlignment = false;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#include "llvm/MC/MCAsmInfoDarwin.h"
|
#include "llvm/MC/MCAsmInfoDarwin.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
DarwinMCAsmInfo::DarwinMCAsmInfo() {
|
MCAsmInfoDarwin::MCAsmInfoDarwin() {
|
||||||
// Common settings for all Darwin targets.
|
// Common settings for all Darwin targets.
|
||||||
// Syntax:
|
// Syntax:
|
||||||
GlobalPrefix = "_";
|
GlobalPrefix = "_";
|
||||||
|
@ -40,7 +40,7 @@ static const char *const arm_asm_table[] = {
|
|||||||
0,0
|
0,0
|
||||||
};
|
};
|
||||||
|
|
||||||
ARMDarwinMCAsmInfo::ARMDarwinMCAsmInfo() {
|
ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin() {
|
||||||
AsmTransCBE = arm_asm_table;
|
AsmTransCBE = arm_asm_table;
|
||||||
Data64bitsDirective = 0;
|
Data64bitsDirective = 0;
|
||||||
CommentString = "@";
|
CommentString = "@";
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
struct ARMDarwinMCAsmInfo : public DarwinMCAsmInfo {
|
struct ARMMCAsmInfoDarwin : public MCAsmInfoDarwin {
|
||||||
explicit ARMDarwinMCAsmInfo();
|
explicit ARMMCAsmInfoDarwin();
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ARMELFMCAsmInfo : public MCAsmInfo {
|
struct ARMELFMCAsmInfo : public MCAsmInfo {
|
||||||
|
@ -32,7 +32,7 @@ static const MCAsmInfo *createMCAsmInfo(const Target &T,
|
|||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
switch (TheTriple.getOS()) {
|
switch (TheTriple.getOS()) {
|
||||||
case Triple::Darwin:
|
case Triple::Darwin:
|
||||||
return new ARMDarwinMCAsmInfo();
|
return new ARMMCAsmInfoDarwin();
|
||||||
default:
|
default:
|
||||||
return new ARMELFMCAsmInfo();
|
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"
|
#include "PPCMCAsmInfo.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
PPCDarwinMCAsmInfo::PPCDarwinMCAsmInfo(bool is64Bit) {
|
PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(bool is64Bit) {
|
||||||
PCSymbol = ".";
|
PCSymbol = ".";
|
||||||
CommentString = ";";
|
CommentString = ";";
|
||||||
ExceptionsType = ExceptionHandling::Dwarf;
|
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 {
|
namespace llvm {
|
||||||
|
|
||||||
struct PPCDarwinMCAsmInfo : public DarwinMCAsmInfo {
|
struct PPCMCAsmInfoDarwin : public MCAsmInfoDarwin {
|
||||||
explicit PPCDarwinMCAsmInfo(bool is64Bit);
|
explicit PPCMCAsmInfoDarwin(bool is64Bit);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct PPCLinuxMCAsmInfo : public MCAsmInfo {
|
struct PPCLinuxMCAsmInfo : public MCAsmInfo {
|
||||||
|
@ -25,7 +25,7 @@ static const MCAsmInfo *createMCAsmInfo(const Target &T,
|
|||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
bool isPPC64 = TheTriple.getArch() == Triple::ppc64;
|
bool isPPC64 = TheTriple.getArch() == Triple::ppc64;
|
||||||
if (TheTriple.getOS() == Triple::Darwin)
|
if (TheTriple.getOS() == Triple::Darwin)
|
||||||
return new PPCDarwinMCAsmInfo(isPPC64);
|
return new PPCMCAsmInfoDarwin(isPPC64);
|
||||||
return new PPCLinuxMCAsmInfo(isPPC64);
|
return new PPCLinuxMCAsmInfo(isPPC64);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ static const char *const x86_asm_table[] = {
|
|||||||
"{cc}", "cc",
|
"{cc}", "cc",
|
||||||
0,0};
|
0,0};
|
||||||
|
|
||||||
X86DarwinMCAsmInfo::X86DarwinMCAsmInfo(const Triple &Triple) {
|
X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) {
|
||||||
AsmTransCBE = x86_asm_table;
|
AsmTransCBE = x86_asm_table;
|
||||||
AssemblerDialect = AsmWriterFlavor;
|
AssemblerDialect = AsmWriterFlavor;
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &Triple) {
|
|||||||
NonexecutableStackDirective = "\t.section\t.note.GNU-stack,\"\",@progbits";
|
NonexecutableStackDirective = "\t.section\t.note.GNU-stack,\"\",@progbits";
|
||||||
}
|
}
|
||||||
|
|
||||||
X86COFFMCAsmInfo::X86COFFMCAsmInfo(const Triple &Triple) {
|
X86MCAsmInfoCOFF::X86MCAsmInfoCOFF(const Triple &Triple) {
|
||||||
AsmTransCBE = x86_asm_table;
|
AsmTransCBE = x86_asm_table;
|
||||||
AssemblerDialect = AsmWriterFlavor;
|
AssemblerDialect = AsmWriterFlavor;
|
||||||
}
|
}
|
||||||
|
@ -21,16 +21,16 @@
|
|||||||
namespace llvm {
|
namespace llvm {
|
||||||
class Triple;
|
class Triple;
|
||||||
|
|
||||||
struct X86DarwinMCAsmInfo : public DarwinMCAsmInfo {
|
struct X86MCAsmInfoDarwin : public MCAsmInfoDarwin {
|
||||||
explicit X86DarwinMCAsmInfo(const Triple &Triple);
|
explicit X86MCAsmInfoDarwin(const Triple &Triple);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct X86ELFMCAsmInfo : public MCAsmInfo {
|
struct X86ELFMCAsmInfo : public MCAsmInfo {
|
||||||
explicit X86ELFMCAsmInfo(const Triple &Triple);
|
explicit X86ELFMCAsmInfo(const Triple &Triple);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct X86COFFMCAsmInfo : public COFFMCAsmInfo {
|
struct X86MCAsmInfoCOFF : public MCAsmInfoCOFF {
|
||||||
explicit X86COFFMCAsmInfo(const Triple &Triple);
|
explicit X86MCAsmInfoCOFF(const Triple &Triple);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct X86WinMCAsmInfo : public MCAsmInfo {
|
struct X86WinMCAsmInfo : public MCAsmInfo {
|
||||||
|
@ -27,11 +27,11 @@ static const MCAsmInfo *createMCAsmInfo(const Target &T,
|
|||||||
Triple TheTriple(TT);
|
Triple TheTriple(TT);
|
||||||
switch (TheTriple.getOS()) {
|
switch (TheTriple.getOS()) {
|
||||||
case Triple::Darwin:
|
case Triple::Darwin:
|
||||||
return new X86DarwinMCAsmInfo(TheTriple);
|
return new X86MCAsmInfoDarwin(TheTriple);
|
||||||
case Triple::MinGW32:
|
case Triple::MinGW32:
|
||||||
case Triple::MinGW64:
|
case Triple::MinGW64:
|
||||||
case Triple::Cygwin:
|
case Triple::Cygwin:
|
||||||
return new X86COFFMCAsmInfo(TheTriple);
|
return new X86MCAsmInfoCOFF(TheTriple);
|
||||||
case Triple::Win32:
|
case Triple::Win32:
|
||||||
return new X86WinMCAsmInfo(TheTriple);
|
return new X86WinMCAsmInfo(TheTriple);
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user