[lld] f74b70e - [lld-macho][test] Remove ld64.lld: prefix in a diagnostic

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 19:41:17 PDT 2021


Author: Fangrui Song
Date: 2021-08-16T19:41:12-07:00
New Revision: f74b70ef57fd038e9e6a781ef5cc72bb9734abe4

URL: https://github.com/llvm/llvm-project/commit/f74b70ef57fd038e9e6a781ef5cc72bb9734abe4
DIFF: https://github.com/llvm/llvm-project/commit/f74b70ef57fd038e9e6a781ef5cc72bb9734abe4.diff

LOG: [lld-macho][test] Remove ld64.lld: prefix in a diagnostic

The convention is not to check the prefix before `error: `.
This gives flexibility if we need to rename ld64.lld to something else,
(e.g. a while ago we used ld64.lld.darwinnew).

Added: 
    

Modified: 
    lld/test/MachO/discard-llvm-sections.s

Removed: 
    


################################################################################
diff  --git a/lld/test/MachO/discard-llvm-sections.s b/lld/test/MachO/discard-llvm-sections.s
index 571fdbb0b2da..a05456dc9667 100644
--- a/lld/test/MachO/discard-llvm-sections.s
+++ b/lld/test/MachO/discard-llvm-sections.s
@@ -23,7 +23,7 @@
 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin --defsym TEXT=0 %t/bar.s -o %t/bar.o
 # RUN: not %lld -dylib %t/foo.o %t/bar.o -o %t/libDuplicate.dylib 2>&1 | FileCheck %s --check-prefix=DUP
 
-# DUP: ld64.lld: error: duplicate symbol: _llvm.foo
+# DUP: error: duplicate symbol: _llvm.foo
 
 #--- foo.s
 .globl _llvm.foo


        


More information about the llvm-commits mailing list