summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMGlobalMerge.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-03-04 19:11:05 +0000
committerDevang Patel <dpatel@apple.com>2011-03-04 19:11:05 +0000
commit53dc40a45fae88be2ef023e3c49b58291b8440f9 (patch)
tree399e801b289aa9f99e6114519f43931967c80c0f /lib/Target/ARM/ARMGlobalMerge.cpp
parent5d6fb5db908c90fde727b6d07c4f0b8be7d91797 (diff)
downloadllvm-53dc40a45fae88be2ef023e3c49b58291b8440f9.tar.gz
llvm-53dc40a45fae88be2ef023e3c49b58291b8440f9.tar.bz2
llvm-53dc40a45fae88be2ef023e3c49b58291b8440f9.tar.xz
Disable ARMGlobalMerge on darwin. The debugger is not yet able to extract individual variable's info from merged global.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMGlobalMerge.cpp')
-rw-r--r--lib/Target/ARM/ARMGlobalMerge.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMGlobalMerge.cpp b/lib/Target/ARM/ARMGlobalMerge.cpp
index 3f0238387a..ab6c00e6e1 100644
--- a/lib/Target/ARM/ARMGlobalMerge.cpp
+++ b/lib/Target/ARM/ARMGlobalMerge.cpp
@@ -53,6 +53,7 @@
#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"
@@ -167,6 +168,11 @@ 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) {