mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
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
This commit is contained in:
@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user