diff options
author | Devang Patel <dpatel@apple.com> | 2011-03-23 23:34:19 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-03-23 23:34:19 +0000 |
commit | 36dca60f5cfb9c858f3e962221ee5f2fa41794e8 (patch) | |
tree | 5d9b46053e92ad0f6a55d16f8e0a14f00ab62bb9 /lib/Target/ARM/ARMGlobalMerge.cpp | |
parent | b9b1e307f2a93d7129680df15b9575638f0aad3e (diff) | |
download | external_llvm-36dca60f5cfb9c858f3e962221ee5f2fa41794e8.zip external_llvm-36dca60f5cfb9c858f3e962221ee5f2fa41794e8.tar.gz external_llvm-36dca60f5cfb9c858f3e962221ee5f2fa41794e8.tar.bz2 |
Enable GlobalMerge on darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMGlobalMerge.cpp')
-rw-r--r-- | lib/Target/ARM/ARMGlobalMerge.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Target/ARM/ARMGlobalMerge.cpp b/lib/Target/ARM/ARMGlobalMerge.cpp index ab6c00e..3f02383 100644 --- a/lib/Target/ARM/ARMGlobalMerge.cpp +++ b/lib/Target/ARM/ARMGlobalMerge.cpp @@ -53,7 +53,6 @@ #define DEBUG_TYPE "arm-global-merge" #include "ARM.h" -#include "ARMTargetMachine.h" #include "llvm/CodeGen/Passes.h" #include "llvm/Attributes.h" #include "llvm/Constants.h" @@ -168,11 +167,6 @@ bool ARMGlobalMerge::doInitialization(Module &M) { unsigned MaxOffset = TLI->getMaximalGlobalOffset(); bool Changed = false; - // Disable this pass on darwin. The debugger is not yet ready to extract - // variable's info from a merged global. - if (TLI->getTargetMachine().getSubtarget<ARMSubtarget>().isTargetDarwin()) - return false; - // Grab all non-const globals. for (Module::global_iterator I = M.global_begin(), E = M.global_end(); I != E; ++I) { |