forked from OSchip/llvm-project
SelectionDAGISel no longer needs to check hasAvailableExternallyLinkage,
as it is now a MachineFunctionPass, and MachineFunctionPass now handles this. llvm-svn: 77760
This commit is contained in:
parent
ac31be1e06
commit
1987bf4561
|
@ -306,11 +306,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
|||
assert((!EnableFastISelAbort || EnableFastISel) &&
|
||||
"-fast-isel-abort requires -fast-isel");
|
||||
|
||||
// Do not codegen any 'available_externally' functions at all, they have
|
||||
// definitions outside the translation unit.
|
||||
if (Fn.hasAvailableExternallyLinkage())
|
||||
return false;
|
||||
|
||||
// Get alias analysis for load/store combining.
|
||||
AA = &getAnalysis<AliasAnalysis>();
|
||||
|
||||
|
|
Loading…
Reference in New Issue