Rename createCodeEmitter to createMCCodeEmitter; createObjectStreamer to createMCObjectStreamer.

llvm-svn: 136032
This commit is contained in:
Evan Cheng 2011-07-26 00:42:40 +00:00
parent 3a79225b4c
commit 9568f27950
1 changed files with 6 additions and 6 deletions

View File

@ -301,7 +301,7 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
MCCodeEmitter *CE = 0;
MCAsmBackend *MAB = 0;
if (Opts.ShowEncoding) {
CE = TheTarget->createCodeEmitter(*TM->getInstrInfo(), STI, Ctx);
CE = TheTarget->createMCCodeEmitter(*TM->getInstrInfo(), STI, Ctx);
MAB = TheTarget->createMCAsmBackend(Opts.Triple);
}
Str.reset(TheTarget->createAsmStreamer(Ctx, *Out, /*asmverbose*/true,
@ -313,12 +313,12 @@ static bool ExecuteAssembler(AssemblerInvocation &Opts, Diagnostic &Diags) {
} else {
assert(Opts.OutputType == AssemblerInvocation::FT_Obj &&
"Invalid file type!");
MCCodeEmitter *CE = TheTarget->createCodeEmitter(*TM->getInstrInfo(),
STI, Ctx);
MCCodeEmitter *CE = TheTarget->createMCCodeEmitter(*TM->getInstrInfo(),
STI, Ctx);
MCAsmBackend *MAB = TheTarget->createMCAsmBackend(Opts.Triple);
Str.reset(TheTarget->createObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
CE, Opts.RelaxAll,
Opts.NoExecStack));
Str.reset(TheTarget->createMCObjectStreamer(Opts.Triple, Ctx, *MAB, *Out,
CE, Opts.RelaxAll,
Opts.NoExecStack));
Str.get()->InitSections();
}