summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2011-01-07 22:33:41 +0000
committerDevang Patel <dpatel@apple.com>2011-01-07 22:33:41 +0000
commit51a666f0e50a34b74212db9c5814153c885153a5 (patch)
treef6d7872a4050baa5c13ad2ece851c4726d8ab914 /lib/CodeGen/LiveDebugVariables.cpp
parent6a6623c596fc12f64c813ea14a006ac6da3e33fe (diff)
downloadllvm-51a666f0e50a34b74212db9c5814153c885153a5.tar.gz
llvm-51a666f0e50a34b74212db9c5814153c885153a5.tar.bz2
llvm-51a666f0e50a34b74212db9c5814153c885153a5.tar.xz
Speculatively revert r123032.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123039 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--lib/CodeGen/LiveDebugVariables.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveDebugVariables.cpp b/lib/CodeGen/LiveDebugVariables.cpp
index 2b6a54eab5..baedfc3efb 100644
--- a/lib/CodeGen/LiveDebugVariables.cpp
+++ b/lib/CodeGen/LiveDebugVariables.cpp
@@ -39,6 +39,10 @@
using namespace llvm;
+static cl::opt<bool>
+EnableLDV("live-debug-variables",
+ cl::desc("Enable the live debug variables pass"), cl::Hidden);
+
char LiveDebugVariables::ID = 0;
INITIALIZE_PASS_BEGIN(LiveDebugVariables, "livedebugvars",
@@ -618,6 +622,8 @@ bool LDVImpl::runOnMachineFunction(MachineFunction &mf) {
}
bool LiveDebugVariables::runOnMachineFunction(MachineFunction &mf) {
+ if (!EnableLDV)
+ return false;
if (!pImpl)
pImpl = new LDVImpl(this);
return static_cast<LDVImpl*>(pImpl)->runOnMachineFunction(mf);