[PATCH] D18027: [lto] Initialize asmparsers.

Sean Silva via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 21:03:46 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL263094: [lto] Initialize asmparsers. (authored by silvas).

Changed prior to commit:
  http://reviews.llvm.org/D18027?vs=50233&id=50234#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D18027

Files:
  lld/trunk/ELF/Driver.cpp
  lld/trunk/test/ELF/lto/inline-asm.ll

Index: lld/trunk/test/ELF/lto/inline-asm.ll
===================================================================
--- lld/trunk/test/ELF/lto/inline-asm.ll
+++ lld/trunk/test/ELF/lto/inline-asm.ll
@@ -0,0 +1,11 @@
+; REQUIRES: x86
+; RUN: llvm-as %s -o %t.o
+; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared
+
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+define void @foo() {
+  call void asm "nop", ""()
+  ret void
+}
Index: lld/trunk/ELF/Driver.cpp
===================================================================
--- lld/trunk/ELF/Driver.cpp
+++ lld/trunk/ELF/Driver.cpp
@@ -321,6 +321,7 @@
   InitializeAllTargets();
   InitializeAllTargetMCs();
   InitializeAllAsmPrinters();
+  InitializeAllAsmParsers();
 
   SymbolTable<ELFT> Symtab;
   std::unique_ptr<TargetInfo> TI(createTarget());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18027.50234.patch
Type: text/x-patch
Size: 858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160310/cba7c8d5/attachment.bin>


More information about the llvm-commits mailing list