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
This commit is contained in:
Devang Patel
2008-11-11 00:53:02 +00:00
parent 080098e311
commit 780c38d84f
2 changed files with 88 additions and 0 deletions

View File

@ -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