Remove llvm-mc's disable-cfi option.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 20 Mar 2014 21:48:20 +0000 (21:48 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 20 Mar 2014 21:48:20 +0000 (21:48 +0000)
It was dead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204404 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-mc/llvm-mc.cpp

index 3e76f35dc62c925f5a22bc0805cf71fc1e3569ad..a4b4a844f67818bb19291130f0c9435dfeae0ae2 100644 (file)
@@ -63,9 +63,6 @@ OutputAsmVariant("output-asm-variant",
 static cl::opt<bool>
 RelaxAll("mc-relax-all", cl::desc("Relax all fixups"));
 
-static cl::opt<bool>
-DisableCFI("disable-cfi", cl::desc("Do not use .cfi_* directives"));
-
 static cl::opt<bool>
 NoExecStack("mc-no-exec-stack", cl::desc("File doesn't need an exec stack"));
 
@@ -433,10 +430,10 @@ int main(int argc, char **argv) {
       CE = TheTarget->createMCCodeEmitter(*MCII, *MRI, *STI, Ctx);
       MAB = TheTarget->createMCAsmBackend(*MRI, TripleName, MCPU);
     }
-    bool UseCFI = !DisableCFI;
-    Str.reset(TheTarget->createAsmStreamer(
-        Ctx, FOS, /*asmverbose*/ true, UseCFI,
-        /*useDwarfDirectory*/ true, IP, CE, MAB, ShowInst));
+    Str.reset(TheTarget->createAsmStreamer(Ctx, FOS, /*asmverbose*/ true,
+                                           /*UseCFI*/ true,
+                                           /*useDwarfDirectory*/
+                                           true, IP, CE, MAB, ShowInst));
 
   } else if (FileType == OFT_Null) {
     Str.reset(createNullStreamer(Ctx));