[lld] r206538 - [ELF] Fix typo that caused a test to fail on FreeBSD.

Rui Ueyama ruiu at google.com
Thu Apr 17 16:38:01 PDT 2014


Author: ruiu
Date: Thu Apr 17 18:38:01 2014
New Revision: 206538

URL: http://llvm.org/viewvc/llvm-project?rev=206538&view=rev
Log:
[ELF] Fix typo that caused a test to fail on FreeBSD.

Modified:
    lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h
    lld/trunk/test/elf/X86_64/defsym.test

Modified: lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h?rev=206538&r1=206537&r2=206538&view=diff
==============================================================================
--- lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h (original)
+++ lld/trunk/include/lld/ReaderWriter/ELFLinkingContext.h Thu Apr 17 18:38:01 2014
@@ -232,7 +232,7 @@ public:
     return _absoluteSymbols;
   }
 
-  const std::map<std::string, std::string> getAliases() const {
+  const std::map<std::string, std::string> &getAliases() const {
     return _aliasSymbols;
   }
 

Modified: lld/trunk/test/elf/X86_64/defsym.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/X86_64/defsym.test?rev=206538&r1=206537&r2=206538&view=diff
==============================================================================
--- lld/trunk/test/elf/X86_64/defsym.test (original)
+++ lld/trunk/test/elf/X86_64/defsym.test Thu Apr 17 18:38:01 2014
@@ -1,5 +1,3 @@
-XFAIL: freebsd
-
 RUN: lld -flavor gnu -target x86_64 --defsym=main=fn --noinhibit-exec \
 RUN:   %p/Inputs/fn.o -o %t
 RUN: llvm-readobj -symbols %t | FileCheck %s





More information about the llvm-commits mailing list