[PATCH] D24348: ELF: clarify error when we don't know the output format

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 14:15:04 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL280989: ELF: clarify error when we don't know the output format (authored by emaste).

Changed prior to commit:
  https://reviews.llvm.org/D24348?vs=70743&id=70748#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D24348

Files:
  lld/trunk/ELF/Driver.cpp
  lld/trunk/test/ELF/no-obj.s

Index: lld/trunk/ELF/Driver.cpp
===================================================================
--- lld/trunk/ELF/Driver.cpp
+++ lld/trunk/ELF/Driver.cpp
@@ -313,7 +313,7 @@
     link<ELF64BE>(Args);
     return;
   default:
-    error("-m or at least a .o file required");
+    error("target emulation unknown: -m or at least one .o file required");
   }
 }
 
Index: lld/trunk/test/ELF/no-obj.s
===================================================================
--- lld/trunk/test/ELF/no-obj.s
+++ lld/trunk/test/ELF/no-obj.s
@@ -2,7 +2,7 @@
 // RUN: llvm-ar rcs %t.a %t.o
 // RUN: not ld.lld -o %t2 -u _start %t.a 2>&1 | FileCheck %s
 
-// CHECK: -m or at least a .o file required
+// CHECK: target emulation unknown: -m or at least one .o file required
 
 .global _start
 _start:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24348.70748.patch
Type: text/x-patch
Size: 788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160908/199f629a/attachment.bin>


More information about the llvm-commits mailing list