summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.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
commitf99bd3a82ba2a4565922666261bf089b1d4307ed (patch)
tree716188776df6d49cf3119e1cb1a3662f9648a7d3 /llvm/lib/CodeGen/MachineFunction.cpp
parentd0fefbafd103c52964a3abd96f929917a8c1e847 (diff)
downloadbcm5719-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/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp18
1 files changed, 1 insertions, 17 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index d1d782c8256..cacfed1d9f7 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -403,9 +403,8 @@ unsigned MachineFunction::addLiveIn(unsigned PReg,
/// source file, line, and column. If none currently exists, create a new
/// DebugLocTuple, and insert it into the DebugIdMap.
unsigned MachineFunction::getOrCreateDebugLocID(GlobalVariable *CompileUnit,
- DebugScope Scope,
unsigned Line, unsigned Col) {
- DebugLocTuple Tuple(CompileUnit, Scope, Line, Col);
+ DebugLocTuple Tuple(CompileUnit, Line, Col);
DenseMap<DebugLocTuple, unsigned>::iterator II
= DebugLocInfo.DebugIdMap.find(Tuple);
if (II != DebugLocInfo.DebugIdMap.end())
@@ -425,21 +424,6 @@ DebugLocTuple MachineFunction::getDebugLocTuple(DebugLoc DL) const {
return DebugLocInfo.DebugLocations[Idx];
}
-/// CreateDebugScope - Create a new debug scope.
-DebugScope MachineFunction::CreateDebugScope(GlobalVariable *ScopeGV,
- DebugScope Parent) {
- DbgScopeInfos.push_back(DebugScopeInfo(ScopeGV, Parent));
- return DebugScope::get(DbgScopeInfos.size() - 1);
-}
-
-/// getDebugScopeInfo - Get the DebugScopeInfo for a given DebugScope object.
-const DebugScopeInfo &MachineFunction::getDebugScopeInfo(DebugScope DS) const {
- unsigned Idx = DS.getIndex();
- assert(Idx < DbgScopeInfos.size() && "Invalid index into debug scopes!");
- return DbgScopeInfos[Idx];
-}
-
-
//===----------------------------------------------------------------------===//
// MachineFrameInfo implementation
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud