diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-31 04:09:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-31 04:09:11 +0000 |
commit | 5169c9e56771bb6a60d55de4786287eb6ec192ea (patch) | |
tree | 9e9ca4da9eee82fbe4a730afb4548c1ed9539913 /lib/VMCore/IRBuilder.cpp | |
parent | 870cfcf9a6189b65a8ee805b93a2c737c0183e62 (diff) | |
download | llvm-5169c9e56771bb6a60d55de4786287eb6ec192ea.tar.gz llvm-5169c9e56771bb6a60d55de4786287eb6ec192ea.tar.bz2 llvm-5169c9e56771bb6a60d55de4786287eb6ec192ea.tar.xz |
make irbuilder use the new optimized debug info accessors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99984 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/IRBuilder.cpp')
-rw-r--r-- | lib/VMCore/IRBuilder.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/VMCore/IRBuilder.cpp b/lib/VMCore/IRBuilder.cpp index 9f2786e4e3..c1b783c752 100644 --- a/lib/VMCore/IRBuilder.cpp +++ b/lib/VMCore/IRBuilder.cpp @@ -32,19 +32,6 @@ Value *IRBuilderBase::CreateGlobalString(const char *Str, const Twine &Name) { return GV; } -/// SetCurrentDebugLocation - Set location information used by debugging -/// information. -void IRBuilderBase::SetCurrentDebugLocation(MDNode *L) { - if (DbgMDKind == 0) - DbgMDKind = Context.getMDKindID("dbg"); - CurDbgLocation = L; -} - -void IRBuilderBase::SetInstDebugLocation(Instruction *I) const { - if (CurDbgLocation) - I->setMetadata(DbgMDKind, CurDbgLocation); -} - const Type *IRBuilderBase::getCurrentFunctionReturnType() const { assert(BB && BB->getParent() && "No current function!"); return BB->getParent()->getReturnType(); |