Go to file
Duncan P. N. Exon Smith 17cbb97882 IR: Add BasicBlock::insertInto()
Although unlinked `BasicBlock`s can be created, there's currently no way
to insert them into `Function`s after the fact.  In particular,
`moveAfter()` and `moveBefore()` require that the basic block is already
linked.

Extract the logic for initially linking a `BasicBlock` out of the
constructor and into a member function that can be used for lazy
insertion.

  - Asserts that the basic block is currently unlinked.
  - Matches the logic of the constructor.
  - Changed the constructor to use it since the logic matches.

This is needed in a follow-up commit for PR5680.

llvm-svn: 214563
2014-08-01 21:22:04 +00:00
clang Let's assume PowerPC has no SSE. 2014-08-01 21:20:02 +00:00
clang-tools-extra [clang-tidy] Add a checker for code that looks like a delegate constructors but doesn't delegate. 2014-07-31 09:58:52 +00:00
compiler-rt Add FreeBSD support to the address sanitizer's deep_stack_uaf.cc test case 2014-08-01 19:37:05 +00:00
debuginfo-tests relax testcase for LLDB output format compatibility. 2014-03-19 23:06:18 +00:00
libclc Implement sin builtin for float types 2014-07-23 15:16:21 +00:00
libcxx Adding ABI information to linux test results 2014-08-01 06:30:18 +00:00
libcxxabi libcxxabi cmake: Use HandleLLVMOptions.cmake, don't manually add -std=c++11. 2014-07-16 23:53:37 +00:00
lld [Mips] Replace assembler code by YAML to make the 'interpreter.test' test 2014-08-01 09:47:21 +00:00
lldb Convert over to using pipes for the initial LLDB commands in the Driver. 2014-08-01 18:32:07 +00:00
llvm IR: Add BasicBlock::insertInto() 2014-08-01 21:22:04 +00:00
openmp CMake: remove duplicated source file from list 2014-06-02 13:09:24 +00:00
polly [Format] Remove blank line in Dependences.h 2014-08-01 08:44:49 +00:00