From acbee0b0d9a24d823a7af207762a7aa9ac7bbfd2 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 7 Jan 2011 22:33:41 +0000 Subject: Speculatively revert r123032. llvm-svn: 123039 --- llvm/lib/CodeGen/LiveDebugVariables.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp') diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 2b6a54eab5a..baedfc3efb5 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -39,6 +39,10 @@ using namespace llvm; +static cl::opt +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(pImpl)->runOnMachineFunction(mf); -- cgit v1.2.3