mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
This reverts commit r234460 and r234461.
Revert "Add classof implementations to the raw_ostream classes." Revert "Use the cast machinery to remove dummy uses of formatted_raw_ostream." The underlying issue can be fixed without classof. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -140,9 +140,12 @@ static MCContext *addPassesToGenerateCode(LLVMTargetMachine *TM,
|
||||
return &MMI->getContext();
|
||||
}
|
||||
|
||||
bool LLVMTargetMachine::addPassesToEmitFile(
|
||||
PassManagerBase &PM, raw_ostream &Out, CodeGenFileType FileType,
|
||||
bool DisableVerify, AnalysisID StartAfter, AnalysisID StopAfter) {
|
||||
bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||
formatted_raw_ostream &Out,
|
||||
CodeGenFileType FileType,
|
||||
bool DisableVerify,
|
||||
AnalysisID StartAfter,
|
||||
AnalysisID StopAfter) {
|
||||
// Add common CodeGen passes.
|
||||
MCContext *Context = addPassesToGenerateCode(this, PM, DisableVerify,
|
||||
StartAfter, StopAfter);
|
||||
@ -182,9 +185,9 @@ bool LLVMTargetMachine::addPassesToEmitFile(
|
||||
MCAsmBackend *MAB = getTarget().createMCAsmBackend(MRI, getTargetTriple(),
|
||||
TargetCPU);
|
||||
MCStreamer *S = getTarget().createAsmStreamer(
|
||||
*Context, cast<formatted_raw_ostream>(Out),
|
||||
Options.MCOptions.AsmVerbose, Options.MCOptions.MCUseDwarfDirectory,
|
||||
InstPrinter, MCE, MAB, Options.MCOptions.ShowMCInst);
|
||||
*Context, Out, Options.MCOptions.AsmVerbose,
|
||||
Options.MCOptions.MCUseDwarfDirectory, InstPrinter, MCE, MAB,
|
||||
Options.MCOptions.ShowMCInst);
|
||||
AsmStreamer.reset(S);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user