From: Chris Lattner Date: Fri, 13 May 2005 07:23:21 +0000 (+0000) Subject: Allow targets to emit code into the entry block of each function X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3aa7832c821c19a57aaf6ce87f16d8b49931e644;p=oota-llvm.git 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 b2b84dfaea9..bda0fcbb2bc 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -932,6 +932,8 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) { FunctionLoweringInfo FuncInfo(TLI, Fn, MF); + EmitFunctionEntryCode(Fn, MF); + for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I) SelectBasicBlock(I, MF, FuncInfo);