aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorStephen Tozer <stephen.tozer@sony.com>2024-02-27 10:17:24 +0000
committerStephen Tozer <stephen.tozer@sony.com>2024-02-27 10:17:24 +0000
commitd128448efdd4e2bf3c9bc9a5b43ae642aa78026f (patch)
tree6a5191bdfb777f3ac04c0645ef8b03b78e4e4df7 /llvm/lib/IR/Module.cpp
parentaa436493ab7ad4cf323b0189c15c59ac9dc293c7 (diff)
downloadllvm-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.cpp22
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);