aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-01 00:42:23 +0000
committerDan Gohman <gohman@apple.com>2009-08-01 00:42:23 +0000
commit4021660154c087c5a57a8018569ca41951dcc4bb (patch)
treeb5e8bb4c016c4bd96250c42552837a22b5d2cb5f /lib/CodeGen
parentde104bdfed7861731ff131fc3d37dd47ae4e6b43 (diff)
downloadexternal_llvm-4021660154c087c5a57a8018569ca41951dcc4bb.zip
external_llvm-4021660154c087c5a57a8018569ca41951dcc4bb.tar.gz
external_llvm-4021660154c087c5a57a8018569ca41951dcc4bb.tar.bz2
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 301c5a7..5857db1 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<AliasAnalysis>();