Allow targets to emit code into the entry block of each function

llvm-svn: 21930
This commit is contained in:
Chris Lattner 2005-05-13 07:23:21 +00:00
parent d705b39476
commit 0220b2952f
1 changed files with 2 additions and 0 deletions

View File

@ -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);