[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 12:53:34 PDT 2016


emaste added a subscriber: Bigcheese.
emaste updated this revision to Diff 70743.
emaste added a comment.

update message to one that matches lld --help terminology
`  -m <value>             Set target emulation`


https://reviews.llvm.org/D24348

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

Index: test/ELF/no-obj.s
===================================================================
--- test/ELF/no-obj.s
+++ 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:
Index: ELF/Driver.cpp
===================================================================
--- ELF/Driver.cpp
+++ ELF/Driver.cpp
@@ -318,7 +318,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");
   }
 }
 


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


More information about the llvm-commits mailing list