mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +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:
@@ -201,6 +201,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
// Initialize targets first, so that --version shows registered targets.
|
||||
InitializeAllTargets();
|
||||
InitializeAllMCAsmInfos();
|
||||
InitializeAllMCInstrInfos();
|
||||
InitializeAllMCSubtargetInfos();
|
||||
InitializeAllAsmPrinters();
|
||||
|
@@ -132,7 +132,7 @@ int Disassembler::disassemble(const Target &T,
|
||||
MemoryBuffer &Buffer,
|
||||
raw_ostream &Out) {
|
||||
// Set up disassembler.
|
||||
OwningPtr<const MCAsmInfo> AsmInfo(T.createAsmInfo(Triple));
|
||||
OwningPtr<const MCAsmInfo> AsmInfo(T.createMCAsmInfo(Triple));
|
||||
|
||||
if (!AsmInfo) {
|
||||
errs() << "error: no assembly info for target " << Triple << "\n";
|
||||
|
@@ -196,7 +196,7 @@ static int AsLexInput(const char *ProgName) {
|
||||
if (!TheTarget)
|
||||
return 1;
|
||||
|
||||
llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createAsmInfo(TripleName));
|
||||
llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(TripleName));
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
AsmLexer Lexer(*MAI);
|
||||
@@ -306,7 +306,7 @@ static int AssembleInput(const char *ProgName) {
|
||||
SrcMgr.setIncludeDirs(IncludeDirs);
|
||||
|
||||
|
||||
llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createAsmInfo(TripleName));
|
||||
llvm::OwningPtr<MCAsmInfo> MAI(TheTarget->createMCAsmInfo(TripleName));
|
||||
assert(MAI && "Unable to create target asm info!");
|
||||
|
||||
// Package up features to be passed to target/subtarget
|
||||
@@ -436,6 +436,7 @@ int main(int argc, char **argv) {
|
||||
llvm::InitializeAllTargetInfos();
|
||||
// FIXME: We shouldn't need to initialize the Target(Machine)s.
|
||||
llvm::InitializeAllTargets();
|
||||
llvm::InitializeAllMCAsmInfos();
|
||||
llvm::InitializeAllMCInstrInfos();
|
||||
llvm::InitializeAllMCSubtargetInfos();
|
||||
llvm::InitializeAllAsmPrinters();
|
||||
|
@@ -174,7 +174,7 @@ static void DisassembleInput(const StringRef &Filename) {
|
||||
outs() << "Disassembly of section " << name << ":\n\n";
|
||||
|
||||
// Set up disassembler.
|
||||
OwningPtr<const MCAsmInfo> AsmInfo(TheTarget->createAsmInfo(TripleName));
|
||||
OwningPtr<const MCAsmInfo> AsmInfo(TheTarget->createMCAsmInfo(TripleName));
|
||||
|
||||
if (!AsmInfo) {
|
||||
errs() << "error: no assembly info for target " << TripleName << "\n";
|
||||
@@ -236,6 +236,7 @@ int main(int argc, char **argv) {
|
||||
llvm::InitializeAllTargetInfos();
|
||||
// FIXME: We shouldn't need to initialize the Target(Machine)s.
|
||||
llvm::InitializeAllTargets();
|
||||
llvm::InitializeAllMCAsmInfos();
|
||||
llvm::InitializeAllAsmPrinters();
|
||||
llvm::InitializeAllAsmParsers();
|
||||
llvm::InitializeAllDisassemblers();
|
||||
|
@@ -73,6 +73,7 @@ LTOCodeGenerator::LTOCodeGenerator()
|
||||
_nativeObjectFile(NULL)
|
||||
{
|
||||
InitializeAllTargets();
|
||||
InitializeAllMCAsmInfos();
|
||||
InitializeAllMCSubtargetInfos();
|
||||
InitializeAllAsmPrinters();
|
||||
}
|
||||
|
@@ -135,6 +135,7 @@ LTOModule *LTOModule::makeLTOModule(MemoryBuffer *buffer,
|
||||
static bool Initialized = false;
|
||||
if (!Initialized) {
|
||||
InitializeAllTargets();
|
||||
InitializeAllMCAsmInfos();
|
||||
InitializeAllMCSubtargetInfos();
|
||||
InitializeAllAsmParsers();
|
||||
Initialized = true;
|
||||
|
Reference in New Issue
Block a user