From: Dan Gohman Date: Sat, 1 Aug 2009 00:42:23 +0000 (+0000) Subject: SelectionDAGISel no longer needs to check hasAvailableExternallyLinkage, X-Git-Tag: android-x86-6.0-r1~1003^2~17480 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c32304e56e85b89f426354dddf98c765eeb16333;p=android-x86%2Fexternal-llvm.git SelectionDAGISel no longer needs to check hasAvailableExternallyLinkage, as it is now a MachineFunctionPass, and MachineFunctionPass now handles this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77760 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 301c5a7262c..5857db10815 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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();