This patch fixes LTO's RecordStreamer so that it records symbols in the MCExpr
authorTom Roeder <tmroeder@google.com>
Mon, 31 Mar 2014 16:59:13 +0000 (16:59 +0000)
committerTom Roeder <tmroeder@google.com>
Mon, 31 Mar 2014 16:59:13 +0000 (16:59 +0000)
commited0e88c31ab2a57b5540b93621637b86903ee101
tree1ec4009c3513b3d11643051540f2b25b420fb939
parent9e135ddd1daadd152f738ecaf3ad89e4fc629604
This patch fixes LTO's RecordStreamer so that it records symbols in the MCExpr
part of an asm .symver directive as being used. This prevents referenced
functions from being internalized and deleted.

Without the patch to LTOModule.cpp, the test case will produce the error:

LLVM ERROR: A @@ version cannot be undefined.

llvm-svn: 205221
llvm/lib/LTO/LTOModule.cpp
llvm/test/LTO/symver-asm.ll [new file with mode: 0644]