llvm.org GIT mirror llvm / 2842c05
Remove the UseCFI option from createAsmStreamer. We were already always passing true, this just removes the option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208205 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
11 changed file(s) with 30 addition(s) and 46 deletion(s). Raw diff Collapse all Expand all
757757 /// \param ShowInst - Whether to show the MCInst representation inline with
758758 /// the assembly.
759759 MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
760 bool isVerboseAsm, bool useCFI,
761 bool useDwarfDirectory, MCInstPrinter *InstPrint,
762 MCCodeEmitter *CE, MCAsmBackend *TAB,
763 bool ShowInst);
760 bool isVerboseAsm, bool useDwarfDirectory,
761 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
762 MCAsmBackend *TAB, bool ShowInst);
764763
765764 /// createMachOStreamer - Create a machine code streamer which will generate
766765 /// Mach-O format object files.
5151 class formatted_raw_ostream;
5252
5353 MCStreamer *createAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
54 bool isVerboseAsm, bool useCFI,
55 bool useDwarfDirectory,
54 bool isVerboseAsm, bool useDwarfDirectory,
5655 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
5756 MCAsmBackend *TAB, bool ShowInst);
5857
134133 typedef MCStreamer *(*AsmStreamerCtorTy)(MCContext &Ctx,
135134 formatted_raw_ostream &OS,
136135 bool isVerboseAsm,
137 bool useCFI,
138136 bool useDwarfDirectory,
139137 MCInstPrinter *InstPrint,
140138 MCCodeEmitter *CE,
436434 MCStreamer *createAsmStreamer(MCContext &Ctx,
437435 formatted_raw_ostream &OS,
438436 bool isVerboseAsm,
439 bool useCFI,
440437 bool useDwarfDirectory,
441438 MCInstPrinter *InstPrint,
442439 MCCodeEmitter *CE,
443440 MCAsmBackend *TAB,
444441 bool ShowInst) const {
445442 if (AsmStreamerCtorFn)
446 return AsmStreamerCtorFn(Ctx, OS, isVerboseAsm, useCFI,
447 useDwarfDirectory, InstPrint, CE, TAB,
448 ShowInst);
449 return llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI,
450 useDwarfDirectory, InstPrint, CE, TAB,
451 ShowInst);
443 return AsmStreamerCtorFn(Ctx, OS, isVerboseAsm, useDwarfDirectory,
444 InstPrint, CE, TAB, ShowInst);
445 return llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useDwarfDirectory,
446 InstPrint, CE, TAB, ShowInst);
452447 }
453448
454449 /// createMCRelocationInfo - Create a target specific MCRelocationInfo.
192192 TargetCPU);
193193 MCStreamer *S = getTarget().createAsmStreamer(*Context, Out,
194194 getVerboseAsm(),
195 hasMCUseCFI(),
196195 hasMCUseDwarfDirectory(),
197196 InstPrinter,
198197 MCE, MAB,
14671467
14681468 MCStreamer *llvm::createAsmStreamer(MCContext &Context,
14691469 formatted_raw_ostream &OS,
1470 bool isVerboseAsm, bool useCFI,
1471 bool useDwarfDirectory, MCInstPrinter *IP,
1472 MCCodeEmitter *CE, MCAsmBackend *MAB,
1473 bool ShowInst) {
1474 return new MCAsmStreamer(Context, OS, isVerboseAsm, useCFI, useDwarfDirectory,
1470 bool isVerboseAsm, bool useDwarfDirectory,
1471 MCInstPrinter *IP, MCCodeEmitter *CE,
1472 MCAsmBackend *MAB, bool ShowInst) {
1473 return new MCAsmStreamer(Context, OS, isVerboseAsm, true, useDwarfDirectory,
14751474 IP, CE, MAB, ShowInst);
14761475 }
13121312 namespace llvm {
13131313
13141314 MCStreamer *createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
1315 bool isVerboseAsm, bool useCFI,
1316 bool useDwarfDirectory,
1315 bool isVerboseAsm, bool useDwarfDirectory,
13171316 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
13181317 MCAsmBackend *TAB, bool ShowInst) {
1319 MCStreamer *S =
1320 llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
1321 InstPrint, CE, TAB, ShowInst);
1318 MCStreamer *S = llvm::createAsmStreamer(
1319 Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
13221320 new ARMTargetAsmStreamer(*S, OS, *InstPrint, isVerboseAsm);
13231321 return S;
13241322 }
4646 }
4747
4848 MCStreamer *createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
49 bool isVerboseAsm, bool useCFI,
50 bool useDwarfDirectory,
49 bool isVerboseAsm, bool useDwarfDirectory,
5150 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
5251 MCAsmBackend *TAB, bool ShowInst);
5352
123123
124124 static MCStreamer *
125125 createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
126 bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
126 bool isVerboseAsm, bool useDwarfDirectory,
127127 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
128128 MCAsmBackend *TAB, bool ShowInst) {
129 MCStreamer *S =
130 llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
131 InstPrint, CE, TAB, ShowInst);
129 MCStreamer *S = llvm::createAsmStreamer(
130 Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
132131 new MipsTargetAsmStreamer(*S, OS);
133132 return S;
134133 }
174174
175175 static MCStreamer *
176176 createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
177 bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
177 bool isVerboseAsm, bool useDwarfDirectory,
178178 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
179179 MCAsmBackend *TAB, bool ShowInst) {
180180
181 MCStreamer *S =
182 llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
183 InstPrint, CE, TAB, ShowInst);
181 MCStreamer *S = llvm::createAsmStreamer(
182 Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
184183 new PPCTargetAsmStreamer(*S, OS);
185184 return S;
186185 }
134134
135135 static MCStreamer *
136136 createMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
137 bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
137 bool isVerboseAsm, bool useDwarfDirectory,
138138 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
139139 MCAsmBackend *TAB, bool ShowInst) {
140140
141 MCStreamer *S =
142 llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
143 InstPrint, CE, TAB, ShowInst);
141 MCStreamer *S = llvm::createAsmStreamer(
142 Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
144143 new SparcTargetAsmStreamer(*S, OS);
145144 return S;
146145 }
127127
128128 static MCStreamer *
129129 createXCoreMCAsmStreamer(MCContext &Ctx, formatted_raw_ostream &OS,
130 bool isVerboseAsm, bool useCFI, bool useDwarfDirectory,
130 bool isVerboseAsm, bool useDwarfDirectory,
131131 MCInstPrinter *InstPrint, MCCodeEmitter *CE,
132132 MCAsmBackend *TAB, bool ShowInst) {
133 MCStreamer *S =
134 llvm::createAsmStreamer(Ctx, OS, isVerboseAsm, useCFI, useDwarfDirectory,
135 InstPrint, CE, TAB, ShowInst);
133 MCStreamer *S = llvm::createAsmStreamer(
134 Ctx, OS, isVerboseAsm, useDwarfDirectory, InstPrint, CE, TAB, ShowInst);
136135 new XCoreTargetAsmStreamer(*S, OS);
137136 return S;
138137 }
454454 MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, MCPU);
455455 }
456456 Str.reset(TheTarget->createAsmStreamer(Ctx, FOS, /*asmverbose*/ true,
457 /*UseCFI*/ true,
458 /*useDwarfDirectory*/
459 true, IP, CE, MAB, ShowInst));
457 /*useDwarfDirectory*/ true, IP, CE,
458 MAB, ShowInst));
460459
461460 } else if (FileType == OFT_Null) {
462461 Str.reset(createNullStreamer(Ctx));