mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
PassManagerBuilder: Remove effectively dead 'StripDebug' option
`StripDebug` was only used by tools/opt/opt.cpp in `AddStandardLinkPasses()`, but opt.cpp adds the same pass based on its command-line flag before it calls `AddStandardLinkPasses()`. Stripping debug info twice isn't very useful. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -97,7 +97,6 @@ PassManagerBuilder::PassManagerBuilder() {
|
||||
DisableGVNLoadPRE = false;
|
||||
VerifyInput = false;
|
||||
VerifyOutput = false;
|
||||
StripDebug = false;
|
||||
MergeFunctions = false;
|
||||
}
|
||||
|
||||
@@ -512,14 +511,10 @@ void PassManagerBuilder::populateLTOPassManager(legacy::PassManagerBase &PM) {
|
||||
if (LibraryInfo)
|
||||
PM.add(new TargetLibraryInfoWrapperPass(*LibraryInfo));
|
||||
|
||||
if (VerifyInput)
|
||||
if (VerifyInput) {
|
||||
PM.add(createVerifierPass());
|
||||
|
||||
if (StripDebug)
|
||||
PM.add(createStripSymbolsPass(true));
|
||||
|
||||
if (VerifyInput)
|
||||
PM.add(createDebugInfoVerifierPass());
|
||||
}
|
||||
|
||||
if (OptLevel != 0)
|
||||
addLTOOptimizationPasses(PM);
|
||||
|
Reference in New Issue
Block a user