mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 18:29:46 +00:00
remove MAI argument from createAsmStreamer since it
can get it from the context now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98361 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
20e3280f3f
commit
fdab14b105
@ -299,8 +299,7 @@ class TargetAsmBackend;
|
||||
/// \param ShowInst - Whether to show the MCInst representation inline with
|
||||
/// the assembly.
|
||||
MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
const MCAsmInfo &MAI, bool isLittleEndian,
|
||||
bool isVerboseAsm,
|
||||
bool isLittleEndian, bool isVerboseAsm,
|
||||
MCInstPrinter *InstPrint = 0,
|
||||
MCCodeEmitter *CE = 0,
|
||||
bool ShowInst = false);
|
||||
|
@ -131,7 +131,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||
case CGFT_AssemblyFile: {
|
||||
MCInstPrinter *InstPrinter =
|
||||
getTarget().createMCInstPrinter(MAI.getAssemblerDialect(), MAI, Out);
|
||||
AsmStreamer.reset(createAsmStreamer(*Context, Out, MAI,
|
||||
AsmStreamer.reset(createAsmStreamer(*Context, Out,
|
||||
getTargetData()->isLittleEndian(),
|
||||
getVerboseAsm(), InstPrinter,
|
||||
/*codeemitter*/0));
|
||||
|
@ -41,11 +41,10 @@ class MCAsmStreamer : public MCStreamer {
|
||||
|
||||
public:
|
||||
MCAsmStreamer(MCContext &Context, formatted_raw_ostream &os,
|
||||
const MCAsmInfo &mai,
|
||||
bool isLittleEndian, bool isVerboseAsm, MCInstPrinter *printer,
|
||||
MCCodeEmitter *emitter, bool showInst)
|
||||
: MCStreamer(Context), OS(os), MAI(mai), InstPrinter(printer),
|
||||
Emitter(emitter), CommentStream(CommentToEmit),
|
||||
: MCStreamer(Context), OS(os), MAI(Context.getAsmInfo()),
|
||||
InstPrinter(printer), Emitter(emitter), CommentStream(CommentToEmit),
|
||||
IsLittleEndian(isLittleEndian), IsVerboseAsm(isVerboseAsm),
|
||||
ShowInst(showInst) {
|
||||
if (InstPrinter && IsVerboseAsm)
|
||||
@ -654,9 +653,9 @@ void MCAsmStreamer::Finish() {
|
||||
|
||||
MCStreamer *llvm::createAsmStreamer(MCContext &Context,
|
||||
formatted_raw_ostream &OS,
|
||||
const MCAsmInfo &MAI, bool isLittleEndian,
|
||||
bool isLittleEndian,
|
||||
bool isVerboseAsm, MCInstPrinter *IP,
|
||||
MCCodeEmitter *CE, bool ShowInst) {
|
||||
return new MCAsmStreamer(Context, OS, MAI, isLittleEndian, isVerboseAsm,
|
||||
return new MCAsmStreamer(Context, OS, isLittleEndian, isVerboseAsm,
|
||||
IP, CE, ShowInst);
|
||||
}
|
||||
|
@ -270,8 +270,7 @@ static int AssembleInput(const char *ProgName) {
|
||||
IP.reset(TheTarget->createMCInstPrinter(OutputAsmVariant, *MAI, *Out));
|
||||
if (ShowEncoding)
|
||||
CE.reset(TheTarget->createCodeEmitter(*TM, Ctx));
|
||||
Str.reset(createAsmStreamer(Ctx, *Out, *MAI,
|
||||
TM->getTargetData()->isLittleEndian(),
|
||||
Str.reset(createAsmStreamer(Ctx, *Out,TM->getTargetData()->isLittleEndian(),
|
||||
/*asmverbose*/true, IP.get(), CE.get(),
|
||||
ShowInst));
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user