diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-05-21 00:04:55 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-05-21 00:04:55 +0000 |
commit | f99bd3a82ba2a4565922666261bf089b1d4307ed (patch) | |
tree | 716188776df6d49cf3119e1cb1a3662f9648a7d3 /llvm/lib/CodeGen/DebugLoc.cpp | |
parent | d0fefbafd103c52964a3abd96f929917a8c1e847 (diff) | |
download | bcm5719-llvm-f99bd3a82ba2a4565922666261bf089b1d4307ed.tar.gz bcm5719-llvm-f99bd3a82ba2a4565922666261bf089b1d4307ed.zip |
Temporarily revert r72191. It was causing an assert during llvm-gcc
bootstrapping.
llvm-svn: 72200
Diffstat (limited to 'llvm/lib/CodeGen/DebugLoc.cpp')
-rw-r--r-- | llvm/lib/CodeGen/DebugLoc.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/llvm/lib/CodeGen/DebugLoc.cpp b/llvm/lib/CodeGen/DebugLoc.cpp deleted file mode 100644 index bc1a5b13401..00000000000 --- a/llvm/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); -} |