mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Cleanup debug info. assocated with deleted instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
780c38d84f
commit
35275f499a
@ -26,7 +26,7 @@
|
|||||||
#include "llvm/ADT/SmallPtrSet.h"
|
#include "llvm/ADT/SmallPtrSet.h"
|
||||||
#include "llvm/ADT/SmallVector.h"
|
#include "llvm/ADT/SmallVector.h"
|
||||||
#include "llvm/ADT/Statistic.h"
|
#include "llvm/ADT/Statistic.h"
|
||||||
|
#include "llvm/Transforms/Utils/DbgInfoUtils.h"
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -89,7 +89,12 @@ bool ADCE::runOnFunction(Function& F) {
|
|||||||
(*I)->eraseFromParent();
|
(*I)->eraseFromParent();
|
||||||
}
|
}
|
||||||
|
|
||||||
return !worklist.empty();
|
if (!worklist.empty()) {
|
||||||
|
RemoveDeadDbgIntrinsics(F);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
FunctionPass *llvm::createAggressiveDCEPass() {
|
FunctionPass *llvm::createAggressiveDCEPass() {
|
||||||
|
Loading…
Reference in New Issue
Block a user