mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Rename createAsmInfo to createMCAsmInfo and move registration code to MCTargetDesc to prepare for next round of changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135219 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -62,13 +62,11 @@ extern "C" void LLVMInitializeCBackendTarget() {
|
||||
RegisterTargetMachine<CTargetMachine> X(TheCBackendTarget);
|
||||
}
|
||||
|
||||
extern "C" void LLVMInitializeCBackendMCInstrInfo() {
|
||||
RegisterMCInstrInfo<MCInstrInfo> X(TheCBackendTarget);
|
||||
}
|
||||
extern "C" void LLVMInitializeCBackendMCAsmInfo() {}
|
||||
|
||||
extern "C" void LLVMInitializeCBackendMCSubtargetInfo() {
|
||||
RegisterMCSubtargetInfo<MCSubtargetInfo> X(TheCBackendTarget);
|
||||
}
|
||||
extern "C" void LLVMInitializeCBackendMCInstrInfo() {}
|
||||
|
||||
extern "C" void LLVMInitializeCBackendMCSubtargetInfo() {}
|
||||
|
||||
namespace {
|
||||
class CBEMCAsmInfo : public MCAsmInfo {
|
||||
@ -1664,7 +1662,7 @@ bool CWriter::doInitialization(Module &M) {
|
||||
|
||||
std::string E;
|
||||
if (const Target *Match = TargetRegistry::lookupTarget(Triple, E))
|
||||
TAsm = Match->createAsmInfo(Triple);
|
||||
TAsm = Match->createMCAsmInfo(Triple);
|
||||
#endif
|
||||
TAsm = new CBEMCAsmInfo();
|
||||
TCtx = new MCContext(*TAsm, NULL);
|
||||
@ -3167,7 +3165,7 @@ std::string CWriter::InterpretASMConstraint(InlineAsm::ConstraintInfo& c) {
|
||||
|
||||
std::string E;
|
||||
if (const Target *Match = TargetRegistry::lookupTarget(Triple, E))
|
||||
TargetAsm = Match->createAsmInfo(Triple);
|
||||
TargetAsm = Match->createMCAsmInfo(Triple);
|
||||
else
|
||||
return c.Codes[0];
|
||||
|
||||
|
Reference in New Issue
Block a user