summaryrefslogtreecommitdiff
path: root/test/CodeGen/MIR/X86/empty0.mir
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-06-06 00:44:35 +0000
committerMatthias Braun <matze@braunis.de>2017-06-06 00:44:35 +0000
commit2144c5262ff63371de29230e3009c6aadf7881d1 (patch)
tree77af6170711c2ac4026106d9ee1aab469dc4f254 /test/CodeGen/MIR/X86/empty0.mir
parent20350be310e85c72c3fca145ad02b054e73d42a1 (diff)
CodeGen: Refactor MIR parsing
When parsing .mir files immediately construct the MachineFunctions and put them into MachineModuleInfo. This allows us to get rid of the delayed construction (and delayed error reporting) through the MachineFunctionInitialzier interface. Differential Revision: https://reviews.llvm.org/D33809 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/MIR/X86/empty0.mir')
-rw-r--r--test/CodeGen/MIR/X86/empty0.mir6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/MIR/X86/empty0.mir b/test/CodeGen/MIR/X86/empty0.mir
new file mode 100644
index 00000000000..4431af7c6a9
--- /dev/null
+++ b/test/CodeGen/MIR/X86/empty0.mir
@@ -0,0 +1,6 @@
+# RUN: llc -run-pass none -o - %s | FileCheck %s
+# Make sure empty files don't crash us
+# CHECK: --- |
+# ... moduleid, sourcefilename stuff here ..
+# CHECK: target datalayout =
+# CHECK: ...