aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/link-bitcode-file.c
AgeCommit message (Collapse)AuthorFilesLines
2017-02-02[CodeGen] Update test after recent changes in llvm (r293846).Davide Italiano1-1/+1
llvm-svn: 293848
2017-02-01[CodeGen] Update test after recent changes in llvm (r293799).Davide Italiano1-1/+1
llvm-svn: 293810
2015-10-27Allow linking multiple bitcode files.Artem Belevich1-2/+13
Linking options for particular file depend on the option that specifies the file. Currently there are two: * -mlink-bitcode-file links in complete content of the specified file. * -mlink-cuda-bitcode links in only the symbols needed by current TU. Linked symbols are internalized. This bitcode linking mode is used to link device-specific bitcode provided by CUDA. Files are linked in order they are specified on command line. -mlink-cuda-bitcode replaces -fcuda-uses-libdevice flag. Differential Revision: http://reviews.llvm.org/D13913 llvm-svn: 251427
2015-05-12Fixed double-free in case of module loading error.Artem Belevich1-0/+5
GetOutputStream() owns the stream it returns pointer to and the pointer should never be freed by us. When we fail to load and exit early, unique_ptr still holds the pointer and frees it which leads to compiler crash when CompilerInstance attempts to free it again. Added regression test for failed bitcode linking. Differential Revision: http://reviews.llvm.org/D9625 llvm-svn: 237159
2014-10-25Make this test a bit stricter by checking clang's output too.Rafael Espindola1-1/+1
llvm-svn: 220604
2013-08-15CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin1-2/+2
tests fail. llvm-svn: 188447
2013-07-04Add 'not' to commands that are expected to fail.Rafael Espindola1-1/+1
This is at least good documentation, but also opens the possibility of using pipefail. llvm-svn: 185652
2011-10-30Add support for lazily linking bitcode files (using a newPeter Collingbourne1-0/+24
-mlink-bitcode-file flag), and more generally llvm::Modules, before running optimisations. llvm-svn: 143314