diff options
author | Stephen Tozer <stephen.tozer@sony.com> | 2024-02-27 10:17:24 +0000 |
---|---|---|
committer | Stephen Tozer <stephen.tozer@sony.com> | 2024-02-27 10:17:24 +0000 |
commit | d128448efdd4e2bf3c9bc9a5b43ae642aa78026f (patch) | |
tree | 6a5191bdfb777f3ac04c0645ef8b03b78e4e4df7 /llvm/lib/IR/Module.cpp | |
parent | aa436493ab7ad4cf323b0189c15c59ac9dc293c7 (diff) | |
download | llvm-d128448efdd4e2bf3c9bc9a5b43ae642aa78026f.zip llvm-d128448efdd4e2bf3c9bc9a5b43ae642aa78026f.tar.gz llvm-d128448efdd4e2bf3c9bc9a5b43ae642aa78026f.tar.bz2 |
Revert "Reapply "[RemoveDIs] Print non-intrinsic debug info in textual IR output (#79281)""
Reverted due to some test failures on some buildbots.
https://lab.llvm.org/buildbot/#/builders/67/builds/14669
This reverts commit aa436493ab7ad4cf323b0189c15c59ac9dc293c7.
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
-rw-r--r-- | llvm/lib/IR/Module.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/IR/Module.cpp b/llvm/lib/IR/Module.cpp index a8696ed..1946db2 100644 --- a/llvm/lib/IR/Module.cpp +++ b/llvm/lib/IR/Module.cpp @@ -85,28 +85,6 @@ Module::~Module() { IFuncList.clear(); } -void Module::removeDebugIntrinsicDeclarations() { - auto *DeclareIntrinsicFn = - Intrinsic::getDeclaration(this, Intrinsic::dbg_declare); - assert((!isMaterialized() || DeclareIntrinsicFn->hasZeroLiveUses()) && - "Debug declare intrinsic should have had uses removed."); - DeclareIntrinsicFn->eraseFromParent(); - auto *ValueIntrinsicFn = - Intrinsic::getDeclaration(this, Intrinsic::dbg_value); - assert((!isMaterialized() || ValueIntrinsicFn->hasZeroLiveUses()) && - "Debug value intrinsic should have had uses removed."); - ValueIntrinsicFn->eraseFromParent(); - auto *AssignIntrinsicFn = - Intrinsic::getDeclaration(this, Intrinsic::dbg_assign); - assert((!isMaterialized() || AssignIntrinsicFn->hasZeroLiveUses()) && - "Debug assign intrinsic should have had uses removed."); - AssignIntrinsicFn->eraseFromParent(); - auto *LabelntrinsicFn = Intrinsic::getDeclaration(this, Intrinsic::dbg_label); - assert((!isMaterialized() || LabelntrinsicFn->hasZeroLiveUses()) && - "Debug label intrinsic should have had uses removed."); - LabelntrinsicFn->eraseFromParent(); -} - std::unique_ptr<RandomNumberGenerator> Module::createRNG(const StringRef Name) const { SmallString<32> Salt(Name); |