aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/DebugLoc.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-05-21 00:04:55 +0000
committerBill Wendling <isanbard@gmail.com>2009-05-21 00:04:55 +0000
commitdf7d5d317096c342ee1c459139914965008fbcd7 (patch)
treec959c208684bb29d9e35f268718632566137babf /lib/CodeGen/DebugLoc.cpp
parent39dd6962821ee48c334ac1240ecb231c18c17e40 (diff)
Temporarily revert r72191. It was causing an assert during llvm-gcc
bootstrapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/DebugLoc.cpp')
-rw-r--r--lib/CodeGen/DebugLoc.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/CodeGen/DebugLoc.cpp b/lib/CodeGen/DebugLoc.cpp
deleted file mode 100644
index bc1a5b1340..0000000000
--- a/lib/CodeGen/DebugLoc.cpp
+++ /dev/null
@@ -1,38 +0,0 @@
-//===-- DebugLoc.cpp ------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// Implementation for DebugScopeTracker.
-//
-//===----------------------------------------------------------------------===//
-
-#include "llvm/CodeGen/DebugLoc.h"
-#include "llvm/CodeGen/MachineFunction.h"
-using namespace llvm;
-
-/// EnterDebugScope - Start a new debug scope. ScopeGV can be a DISubprogram
-/// or a DIBlock.
-void DebugScopeTracker::EnterDebugScope(GlobalVariable *ScopeGV,
- MachineFunction &MF) {
- assert(ScopeGV && "GlobalVariable for scope is null!");
- CurScope = MF.CreateDebugScope(ScopeGV, CurScope);
-}
-
-/// ExitDebugScope - "Pop" a DISubprogram or a DIBlock.
-void DebugScopeTracker::ExitDebugScope(GlobalVariable *ScopeGV,
- MachineFunction &MF) {
- assert(ScopeGV && "GlobalVariable for scope is null!");
- assert(!CurScope.isInvalid() && "Mismatched region.end ?");
- // We may have skipped a region.end because it was in an unreachable block.
- // Go up the scope chain until we reach the scope that ScopeGV points to.
- DebugScopeInfo DSI;
- do {
- DSI = MF.getDebugScopeInfo(CurScope);
- CurScope = DSI.Parent;
- } while (!DSI.Parent.isInvalid() && DSI.GV != ScopeGV);
-}