diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-07-18 00:27:46 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-07-18 00:27:46 +0000 |
commit | 7a8503c4114d5f56b7ba4a7b07c6dd07a06c1c23 (patch) | |
tree | f5508d57f2006367d0fb6ff58f2913d5fc406f1c /include/llvm/IR | |
parent | 04b2995e26b1a58a696324d126e8023186a36e83 (diff) | |
download | external_llvm-7a8503c4114d5f56b7ba4a7b07c6dd07a06c1c23.zip external_llvm-7a8503c4114d5f56b7ba4a7b07c6dd07a06c1c23.tar.gz external_llvm-7a8503c4114d5f56b7ba4a7b07c6dd07a06c1c23.tar.bz2 |
Get rid of the Dis/EnableDebugLocations() API.
I'm moving this functionality into clang instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR')
-rw-r--r-- | include/llvm/IR/IRBuilder.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/llvm/IR/IRBuilder.h b/include/llvm/IR/IRBuilder.h index 80a2ede..40fffad 100644 --- a/include/llvm/IR/IRBuilder.h +++ b/include/llvm/IR/IRBuilder.h @@ -49,10 +49,6 @@ protected: class IRBuilderBase { DebugLoc CurDbgLocation; protected: - /// Save the current debug location here while we are suppressing - /// line table entries. - llvm::DebugLoc SavedDbgLocation; - BasicBlock *BB; BasicBlock::iterator InsertPt; LLVMContext &Context; @@ -119,23 +115,6 @@ public: CurDbgLocation = L; } - /// \brief Temporarily suppress DebugLocations from being attached - /// to emitted instructions, until the next call to - /// SetCurrentDebugLocation() or EnableDebugLocations(). Use this - /// if you want an instruction to be counted towards the prologue or - /// if there is no useful source location. - void DisableDebugLocations() { - llvm::DebugLoc Empty; - SavedDbgLocation = getCurrentDebugLocation(); - SetCurrentDebugLocation(Empty); - } - - /// \brief Restore the previously saved DebugLocation. - void EnableDebugLocations() { - assert(CurDbgLocation.isUnknown()); - SetCurrentDebugLocation(SavedDbgLocation); - } - /// \brief Get location information used by debugging information. DebugLoc getCurrentDebugLocation() const { return CurDbgLocation; } |