commit | 3aa7832c821c19a57aaf6ce87f16d8b49931e644 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri May 13 07:23:21 2005 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri May 13 07:23:21 2005 +0000 |
tree | 953ff8a52e93fe54c1918f340e8c43933c44b6cf | |
parent | cc13b76246789c1c27290801922049eff959fc58 [diff] [blame] |
Allow targets to emit code into the entry block of each function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21930 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index b2b84df..bda0fcb 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -932,6 +932,8 @@ FunctionLoweringInfo FuncInfo(TLI, Fn, MF); + EmitFunctionEntryCode(Fn, MF); + for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I) SelectBasicBlock(I, MF, FuncInfo);