aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-11-11 00:53:02 +0000
committerDevang Patel <dpatel@apple.com>2008-11-11 00:53:02 +0000
commit780c38d84f5dbe3bafecac5cdeb061c87618710a (patch)
treed409b178a75929d931ddab15b5c41fe2aa44ad88 /include/llvm/Transforms
parent080098e3115e095c5e0e9c260e2e7a0ffb5fbe7f (diff)
Add utility routines to remove dead debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Utils/DbgInfoUtils.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/DbgInfoUtils.h b/include/llvm/Transforms/Utils/DbgInfoUtils.h
new file mode 100644
index 0000000000..13f8fa3ef2
--- /dev/null
+++ b/include/llvm/Transforms/Utils/DbgInfoUtils.h
@@ -0,0 +1,28 @@
+//===-- Transform/Utils/DbgInfoUtils.h - DbgInfo Utils ----------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// Utility functions to manipulate debugging information.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_TRANSFORMS_UTILS_DBGINFO_H
+#define LLVM_TRANSFORMS_UTILS_DBGINFO_H
+namespace llvm {
+class BasicBlock;
+class Function;
+
+/// RemoveDeadDbgIntrinsics - Remove dead dbg intrinsics from this
+/// basic block.
+void RemoveDeadDbgIntrinsics(BasicBlock &BB);
+
+/// RemoveDeadDbgIntrinsics - Remove dead dbg intrinsics from this function.
+void RemoveDeadDbgIntrinsics(Function &F);
+
+} // End llvm namespace
+#endif