forked from OSchip/llvm-project
Allow targets to emit code into the entry block of each function
llvm-svn: 21930
This commit is contained in:
parent
d705b39476
commit
0220b2952f
|
@ -932,6 +932,8 @@ bool SelectionDAGISel::runOnFunction(Function &Fn) {
|
||||||
|
|
||||||
FunctionLoweringInfo FuncInfo(TLI, Fn, MF);
|
FunctionLoweringInfo FuncInfo(TLI, Fn, MF);
|
||||||
|
|
||||||
|
EmitFunctionEntryCode(Fn, MF);
|
||||||
|
|
||||||
for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)
|
for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)
|
||||||
SelectBasicBlock(I, MF, FuncInfo);
|
SelectBasicBlock(I, MF, FuncInfo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue