MC/Mach-O: Silently ignore .file directives instead of error'ing out on
authorDaniel Dunbar <daniel@zuster.org>
Mon, 19 Jul 2010 20:44:20 +0000 (20:44 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 19 Jul 2010 20:44:20 +0000 (20:44 +0000)
them. They aren't important enough to abort the entire assembly, and failing
early makes testing more annoying.

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

lib/MC/MCMachOStreamer.cpp

index ffae64209950647e6da86d1e73e8f6aed2cce152..fc394b5f60c4228d4987a73631660dd23dd29099 100644 (file)
@@ -82,10 +82,16 @@ public:
                                  unsigned char Value = 0);
 
   virtual void EmitFileDirective(StringRef Filename) {
-    report_fatal_error("unsupported directive: '.file'");
+    // FIXME: Just ignore the .file; it isn't important enough to fail the
+    // entire assembly.
+
+    //report_fatal_error("unsupported directive: '.file'");
   }
   virtual void EmitDwarfFileDirective(unsigned FileNo, StringRef Filename) {
-    report_fatal_error("unsupported directive: '.file'");
+    // FIXME: Just ignore the .file; it isn't important enough to fail the
+    // entire assembly.
+
+    //report_fatal_error("unsupported directive: '.file'");
   }
 
   virtual void EmitInstruction(const MCInst &Inst);