llvm.org GIT mirror llvm / b8275a3
Don't ignore the return value of AsmPrinter::doInitialization and AsmPrinter::doFinalization. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40487 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 13 years ago
8 changed file(s) with 26 addition(s) and 35 deletion(s). Raw diff Collapse all Expand all
788788 // Emit initial debug information.
789789 DW.BeginModule(&M);
790790
791 AsmPrinter::doInitialization(M);
791 bool Result = AsmPrinter::doInitialization(M);
792792
793793 // Darwin wants symbols to be quoted if they have complex names.
794794 if (Subtarget->isTargetDarwin())
795795 Mang->setUseQuotes(true);
796796
797 return false;
797 return Result;
798798 }
799799
800800 bool ARMAsmPrinter::doFinalization(Module &M) {
10231023 DW.EndModule();
10241024 }
10251025
1026 AsmPrinter::doFinalization(M);
1027 return false; // success
1028 }
1026 return AsmPrinter::doFinalization(M);
1027 }
197197 else
198198 O << "\t.arch ev6\n";
199199 O << "\t.set noat\n";
200 AsmPrinter::doInitialization(M);
201 return false;
200 return AsmPrinter::doInitialization(M);
202201 }
203202
204203 bool AlphaAsmPrinter::doFinalization(Module &M) {
270269 O << '\n';
271270 }
272271
273 AsmPrinter::doFinalization(M);
274 return false;
272 return AsmPrinter::doFinalization(M);
275273 }
276274
277275 /// PrintAsmOperand - Print out an operand for an inline asm expression.
247247 }
248248
249249 bool IA64AsmPrinter::doInitialization(Module &M) {
250 AsmPrinter::doInitialization(M);
250 bool Result = AsmPrinter::doInitialization(M);
251251
252252 O << "\n.ident \"LLVM-ia64\"\n\n"
253253 << "\t.psr lsb\n" // should be "msb" on HP-UX, for starters
254254 << "\t.radix C\n"
255255 << "\t.psr abi64\n"; // we only support 64 bits for now
256 return false;
256 return Result;
257257 }
258258
259259 bool IA64AsmPrinter::doFinalization(Module &M) {
343343 }
344344 O << "\n\n";
345345
346 AsmPrinter::doFinalization(M);
347 return false; // success
346 return AsmPrinter::doFinalization(M);
348347 }
349348
350349 /// createIA64CodePrinterPass - Returns a pass that prints the IA64
427427 }
428428 }
429429
430 AsmPrinter::doFinalization(M);
431 return false; // success
432 }
430 return AsmPrinter::doFinalization(M);
431 }
625625 }
626626
627627 bool LinuxAsmPrinter::doInitialization(Module &M) {
628 AsmPrinter::doInitialization(M);
628 bool Result = AsmPrinter::doInitialization(M);
629629
630630 // GNU as handles section names wrapped in quotes
631631 Mang->setUseQuotes(true);
634634
635635 // Emit initial debug information.
636636 DW.BeginModule(&M);
637 return false;
637 return Result;
638638 }
639639
640640 bool LinuxAsmPrinter::doFinalization(Module &M) {
742742 // Emit initial debug information.
743743 DW.EndModule();
744744
745 AsmPrinter::doFinalization(M);
746 return false; // success
745 return AsmPrinter::doFinalization(M);
747746 }
748747
749748 std::string LinuxAsmPrinter::getSectionForFunction(const Function &F) const {
857856 assert(Directive <= PPC::DIR_64 && "Directive out of range.");
858857 O << "\t.machine " << CPUDirectives[Directive] << "\n";
859858
860 AsmPrinter::doInitialization(M);
859 bool Result = AsmPrinter::doInitialization(M);
861860
862861 // Darwin wants symbols to be quoted if they have complex names.
863862 Mang->setUseQuotes(true);
877876
878877 // Emit initial debug information.
879878 DW.BeginModule(&M);
880 return false;
879 return Result;
881880 }
882881
883882 bool DarwinAsmPrinter::doFinalization(Module &M) {
10771076 // code that does this, it is always safe to set.
10781077 O << "\t.subsections_via_symbols\n";
10791078
1080 AsmPrinter::doFinalization(M);
1081 return false; // success
1079 return AsmPrinter::doFinalization(M);
10821080 }
10831081
10841082
285285 }
286286 }
287287
288 AsmPrinter::doFinalization(M);
289 return false; // success
290 }
288 return AsmPrinter::doFinalization(M);
289 }
119119 DW.BeginModule(&M);
120120 }
121121
122 AsmPrinter::doInitialization(M);
122 bool Result = AsmPrinter::doInitialization(M);
123123
124124 // Darwin wants symbols to be quoted if they have complex names.
125125 if (Subtarget->isTargetDarwin())
126126 Mang->setUseQuotes(true);
127127
128 return false;
128 return Result;
129129 }
130130
131131 bool X86SharedAsmPrinter::doFinalization(Module &M) {
388388 DW.EndModule();
389389 }
390390
391 AsmPrinter::doFinalization(M);
392 return false; // success
391 return AsmPrinter::doFinalization(M);
393392 }
394393
395394 /// createX86CodePrinterPass - Returns a pass that prints the X86 assembly code
338338 }
339339
340340 bool X86IntelAsmPrinter::doInitialization(Module &M) {
341 X86SharedAsmPrinter::doInitialization(M);
341 bool Result = X86SharedAsmPrinter::doInitialization(M);
342342
343343 Mang->markCharUnacceptable('.');
344344
372372 }
373373 }
374374
375 return false;
375 return Result;
376376 }
377377
378378 bool X86IntelAsmPrinter::doFinalization(Module &M) {
462462 }
463463
464464 // Bypass X86SharedAsmPrinter::doFinalization().
465 AsmPrinter::doFinalization(M);
465 bool Result = AsmPrinter::doFinalization(M);
466466 SwitchToDataSection("");
467467 O << "\tend\n";
468 return false; // success
468 return Result;
469469 }
470470
471471 void X86IntelAsmPrinter::EmitString(const ConstantArray *CVA) const {