mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 15:19:33 +00:00
Remove the UseCFI option from createAsmStreamer.
We were already always passing true, this just removes the option. llvm-svn: 208205
This commit is contained in:
parent
1645f9d9b6
commit
765e5e78cf
@ -758,10 +758,9 @@ MCStreamer *createNullStreamer(MCContext &Ctx);
|
||||
/// \param ShowInst - Whether to show the MCInst representation inline with
|
||||
/// the assembly.
|
||||
MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI,
|
||||
bool useDwarfDirectory, MCInstPrinter *InstPrint,
|
||||
MCCodeEmitter *CE, MCAsmBackend *TAB,
|
||||
bool ShowInst);
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst);
|
||||
|
||||
/// createMachOStreamer - Create a machine code streamer which will generate
|
||||
/// Mach-O format object files.
|
||||
|
@ -52,8 +52,7 @@ namespace llvm {
|
||||
class formatted_raw_ostream;
|
||||
|
||||
MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI,
|
||||
bool useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst);
|
||||
|
||||
@ -135,7 +134,6 @@ namespace llvm {
|
||||
typedef MCStreamer *(*AsmStreamerCtorTy)(MCContext &Ctx,
|
||||
formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm,
|
||||
bool useCFI,
|
||||
bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint,
|
||||
MCCodeEmitter *CE,
|
||||
@ -437,19 +435,16 @@ namespace llvm {
|
||||
MCStreamer *createAsmStreamer(MCContext &Ctx,
|
||||
formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm,
|
||||
bool useCFI,
|
||||
bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint,
|
||||
MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB,
|
||||
bool ShowInst) const {
|
||||
if (AsmStreamerCtorFn)
|
||||
return AsmStreamerCtorFn(Ctx, OS, isVerboseAsm, useCFI,
|
||||
useDwarfDirectory, InstPrint, CE, TAB,
|
||||
ShowInst);
|
||||
return llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI,
|
||||
useDwarfDirectory, InstPrint, CE, TAB,
|
||||
ShowInst);
|
||||
return AsmStreamerCtorFn(Ctx, OS, isVerboseAsm, useDwarfDirectory,
|
||||
InstPrint, CE, TAB, ShowInst);
|
||||
return llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useDwarfDirectory,
|
||||
InstPrint, CE, TAB, ShowInst);
|
||||
}
|
||||
|
||||
/// createMCRelocationInfo - Create a target specific MCRelocationInfo.
|
||||
|
@ -193,7 +193,6 @@ bool LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
||||
TargetCPU);
|
||||
MCStreamer *S = getTarget().createAsmStreamer(*Context, Out,
|
||||
getVerboseAsm(),
|
||||
hasMCUseCFI(),
|
||||
hasMCUseDwarfDirectory(),
|
||||
InstPrinter,
|
||||
MCE, MAB,
|
||||
|
@ -1468,10 +1468,9 @@ void MCAsmStreamer::FinishImpl() {
|
||||
|
||||
MCStreamer *llvm::createAsmStreamer(MCContext &Context,
|
||||
formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI,
|
||||
bool useDwarfDirectory, MCInstPrinter *IP,
|
||||
MCCodeEmitter *CE, MCAsmBackend *MAB,
|
||||
bool ShowInst) {
|
||||
return new MCAsmStreamer(Context, OS, isVerboseAsm, useCFI, useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *IP, MCCodeEmitter *CE,
|
||||
MCAsmBackend *MAB, bool ShowInst) {
|
||||
return new MCAsmStreamer(Context, OS, isVerboseAsm, true, useDwarfDirectory,
|
||||
IP, CE, MAB, ShowInst);
|
||||
}
|
||||
|
@ -1313,13 +1313,11 @@ void ARMELFStreamer::emitUnwindRaw(int64_t Offset,
|
||||
namespace llvm {
|
||||
|
||||
MCStreamer *createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI,
|
||||
bool useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst) {
|
||||
MCStreamer *S =
|
||||
llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
|
||||
InstPrint, CE, TAB, ShowInst);
|
||||
MCStreamer *S = llvm::createAsmStreamer(
|
||||
Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
|
||||
new ARMTargetAsmStreamer(*S, OS, *InstPrint, isVerboseAsm);
|
||||
return S;
|
||||
}
|
||||
|
@ -47,8 +47,7 @@ namespace ARM_MC {
|
||||
}
|
||||
|
||||
MCStreamer *createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI,
|
||||
bool useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst);
|
||||
|
||||
|
@ -124,12 +124,11 @@ static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
|
||||
static MCStreamer *
|
||||
createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst) {
|
||||
MCStreamer *S =
|
||||
llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
|
||||
InstPrint, CE, TAB, ShowInst);
|
||||
MCStreamer *S = llvm::createAsmStreamer(
|
||||
Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
|
||||
new MipsTargetAsmStreamer(*S, OS);
|
||||
return S;
|
||||
}
|
||||
|
@ -175,13 +175,12 @@ static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
|
||||
static MCStreamer *
|
||||
createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst) {
|
||||
|
||||
MCStreamer *S =
|
||||
llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
|
||||
InstPrint, CE, TAB, ShowInst);
|
||||
MCStreamer *S = llvm::createAsmStreamer(
|
||||
Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
|
||||
new PPCTargetAsmStreamer(*S, OS);
|
||||
return S;
|
||||
}
|
||||
|
@ -135,13 +135,12 @@ static MCStreamer *createMCStreamer(const Target &T, StringRef TT,
|
||||
|
||||
static MCStreamer *
|
||||
createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst) {
|
||||
|
||||
MCStreamer *S =
|
||||
llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
|
||||
InstPrint, CE, TAB, ShowInst);
|
||||
MCStreamer *S = llvm::createAsmStreamer(
|
||||
Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
|
||||
new SparcTargetAsmStreamer(*S, OS);
|
||||
return S;
|
||||
}
|
||||
|
@ -128,12 +128,11 @@ void XCoreTargetAsmStreamer::emitCCBottomFunction(StringRef Name) {
|
||||
|
||||
static MCStreamer *
|
||||
createXCoreMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
|
||||
bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
|
||||
bool isVerboseAsm, bool useDwarfDirectory,
|
||||
MCInstPrinter *InstPrint, MCCodeEmitter *CE,
|
||||
MCAsmBackend *TAB, bool ShowInst) {
|
||||
MCStreamer *S =
|
||||
llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
|
||||
InstPrint, CE, TAB, ShowInst);
|
||||
MCStreamer *S = llvm::createAsmStreamer(
|
||||
Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
|
||||
new XCoreTargetAsmStreamer(*S, OS);
|
||||
return S;
|
||||
}
|
||||
|
@ -455,9 +455,8 @@ int main(int argc, char **argv) {
|
||||
MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, MCPU);
|
||||
}
|
||||
Str.reset(TheTarget->createAsmStreamer(Ctx, FOS, /*asmverbose*/ true,
|
||||
/*UseCFI*/ true,
|
||||
/*useDwarfDirectory*/
|
||||
true, IP, CE, MAB, ShowInst));
|
||||
/*useDwarfDirectory*/ true, IP, CE,
|
||||
MAB, ShowInst));
|
||||
|
||||
} else if (FileType == OFT_Null) {
|
||||
Str.reset(createNullStreamer(Ctx));
|
||||
|
Loading…
Reference in New Issue
Block a user