aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2020-09-21 09:53:09 -0700
committerSriraman Tallam <tmsriram@google.com>2020-09-21 10:00:12 -0700
commit6950db36d33d85d18e3241ab6c87494c05ebe0fb (patch)
treef315f90711fac9cedbe3b746f5934562f2efc50a /lldb/source/Commands/CommandObjectBreakpointCommand.cpp
parent46075e0b78c33be79c6c1ae5547a78ef87ddb374 (diff)
downloadllvm-6950db36d33d85d18e3241ab6c87494c05ebe0fb.zip
llvm-6950db36d33d85d18e3241ab6c87494c05ebe0fb.tar.gz
llvm-6950db36d33d85d18e3241ab6c87494c05ebe0fb.tar.bz2
The wrong placement of add pass with optimizations led to -funique-internal-linkage-names being disabled.
Fixed the placement of the MPM.addpass for UniqueInternalLinkageNames to make it work correctly with -O2 and new pass manager. Updated the tests to explicitly check O0 and O2. Previously, the addPass was placed before BackendUtil.cpp#L1373 which is wrong as MPM gets assigned at this point and any additions to the pass vector before this is wrong. This change just moves it after MPM is assigned and places it at a point where O0 and O0+ can share it. Differential Revision: https://reviews.llvm.org/D87921
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpointCommand.cpp')
0 files changed, 0 insertions, 0 deletions