MC/Mach-O: Fail faster/harder when we see .file, which isn't yet supported.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 18 May 2010 17:28:17 +0000 (17:28 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 18 May 2010 17:28:17 +0000 (17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104031 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCMachOStreamer.cpp

index 629a6ba6dc374aed2e9d9362326ed539586d3040..f1dc34944dda29bf25880105fd25de46c5a0f5ea 100644 (file)
@@ -142,10 +142,10 @@ public:
                                  unsigned char Value = 0);
   
   virtual void EmitFileDirective(StringRef Filename) {
-    errs() << "FIXME: MCMachoStreamer:EmitFileDirective not implemented\n";
+    report_fatal_error("unsupported directive: '.file'");
   }
   virtual void EmitDwarfFileDirective(unsigned FileNo, StringRef Filename) {
-    errs() << "FIXME: MCMachoStreamer:EmitDwarfFileDirective not implemented\n";
+    report_fatal_error("unsupported directive: '.file'");
   }
   
   virtual void EmitInstruction(const MCInst &Inst);