aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-07-19 20:44:20 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-07-19 20:44:20 +0000
commit96749678c9d4cf73d8cbc108a2f2f4872e4e4413 (patch)
tree851c948f6c522c5bb151b268894e1acbc5a51ad5 /lib/MC
parent77e2dd7bb2bb5f28d389ba246d815cd9848ee53b (diff)
downloadexternal_llvm-96749678c9d4cf73d8cbc108a2f2f4872e4e4413.zip
external_llvm-96749678c9d4cf73d8cbc108a2f2f4872e4e4413.tar.gz
external_llvm-96749678c9d4cf73d8cbc108a2f2f4872e4e4413.tar.bz2
MC/Mach-O: Silently ignore .file directives instead of error'ing out on
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
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCMachOStreamer.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/MC/MCMachOStreamer.cpp b/lib/MC/MCMachOStreamer.cpp
index ffae642..fc394b5 100644
--- a/lib/MC/MCMachOStreamer.cpp
+++ b/lib/MC/MCMachOStreamer.cpp
@@ -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);