llvm.org GIT mirror llvm / 985884c
Add a -disable-cfi option to llvm-mc. This is useful for debugging as it will expand any .cfi_* directives in the input assembly. Unfortunately this cannot replace elf-dump in tests as the asm streamer cannot relax the line advance opcodes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168522 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 8 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6666
6767 static cl::opt
6868 RelaxAll("mc-relax-all", cl::desc("Relax all fixups"));
69
70 static cl::opt
71 DisableCFI("disable-cfi", cl::desc("Do not use .cfi_* directives"));
6972
7073 static cl::opt
7174 NoExecStack("mc-no-exec-stack", cl::desc("File doesn't need an exec stack"));
414417 CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
415418 MAB = TheTarget->createMCAsmBackend(TripleName, MCPU);
416419 }
420 bool UseCFI = !DisableCFI;
417421 Str.reset(TheTarget->createAsmStreamer(Ctx, FOS, /*asmverbose*/true,
418422 /*useLoc*/ true,
419 /*useCFI*/ true,
423 UseCFI,
420424 /*useDwarfDirectory*/ true,
421425 IP, CE, MAB, ShowInst));
422426