[llvm] r186549 - Get rid of the Dis/EnableDebugLocations() API.
Adrian Prantl
aprantl at apple.com
Wed Jul 17 17:27:46 PDT 2013
Author: adrian
Date: Wed Jul 17 19:27:46 2013
New Revision: 186549
URL: http://llvm.org/viewvc/llvm-project?rev=186549&view=rev
Log:
Get rid of the Dis/EnableDebugLocations() API.
I'm moving this functionality into clang instead.
Modified:
llvm/trunk/include/llvm/IR/IRBuilder.h
Modified: llvm/trunk/include/llvm/IR/IRBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IRBuilder.h?rev=186549&r1=186548&r2=186549&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IRBuilder.h (original)
+++ llvm/trunk/include/llvm/IR/IRBuilder.h Wed Jul 17 19:27:46 2013
@@ -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; }
More information about the llvm-commits
mailing list