diff options
author | Devang Patel <dpatel@apple.com> | 2011-01-07 22:33:41 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2011-01-07 22:33:41 +0000 |
commit | acbee0b0d9a24d823a7af207762a7aa9ac7bbfd2 (patch) | |
tree | 80b45f0b960ebb12fab396450961244f7affee95 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 39bd6cebcd776ac03889d0a2576ab1dcac5e4b32 (diff) | |
download | llvm-acbee0b0d9a24d823a7af207762a7aa9ac7bbfd2.zip llvm-acbee0b0d9a24d823a7af207762a7aa9ac7bbfd2.tar.gz llvm-acbee0b0d9a24d823a7af207762a7aa9ac7bbfd2.tar.bz2 |
Speculatively revert r123032.
llvm-svn: 123039
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 2b6a54e..baedfc3 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/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); |