mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
TAI -> MAI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80899 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
17b9abb799
commit
a9eb359452
@ -243,13 +243,13 @@ static int AssembleInput(const char *ProgName) {
|
|||||||
OwningPtr<MCStreamer> Str;
|
OwningPtr<MCStreamer> Str;
|
||||||
|
|
||||||
if (FileType == OFT_AssemblyFile) {
|
if (FileType == OFT_AssemblyFile) {
|
||||||
const MCAsmInfo *TAI = TheTarget->createAsmInfo(TripleName);
|
const MCAsmInfo *MAI = TheTarget->createAsmInfo(TripleName);
|
||||||
assert(TAI && "Unable to create target asm info!");
|
assert(MAI && "Unable to create target asm info!");
|
||||||
|
|
||||||
AP.reset(TheTarget->createAsmPrinter(*Out, *TM, TAI, true));
|
AP.reset(TheTarget->createAsmPrinter(*Out, *TM, MAI, true));
|
||||||
if (ShowEncoding)
|
if (ShowEncoding)
|
||||||
CE.reset(TheTarget->createCodeEmitter(*TM));
|
CE.reset(TheTarget->createCodeEmitter(*TM));
|
||||||
Str.reset(createAsmStreamer(Ctx, *Out, *TAI, AP.get(), CE.get()));
|
Str.reset(createAsmStreamer(Ctx, *Out, *MAI, AP.get(), CE.get()));
|
||||||
} else {
|
} else {
|
||||||
assert(FileType == OFT_ObjectFile && "Invalid file type!");
|
assert(FileType == OFT_ObjectFile && "Invalid file type!");
|
||||||
CE.reset(TheTarget->createCodeEmitter(*TM));
|
CE.reset(TheTarget->createCodeEmitter(*TM));
|
||||||
|
Loading…
Reference in New Issue
Block a user