mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
Make DebugLoc independent of DwarfWriter.
-Replace DebugLocTuple's Source ID with CompileUnit's GlobalVariable* -Remove DwarfWriter::getOrCreateSourceID -Make necessary changes for the above (fix callsites, etc.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70520 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -398,9 +398,9 @@ unsigned MachineFunction::addLiveIn(unsigned PReg,
|
||||
/// getOrCreateDebugLocID - Look up the DebugLocTuple index with the given
|
||||
/// source file, line, and column. If none currently exists, create a new
|
||||
/// DebugLocTuple, and insert it into the DebugIdMap.
|
||||
unsigned MachineFunction::getOrCreateDebugLocID(unsigned Src, unsigned Line,
|
||||
unsigned Col) {
|
||||
DebugLocTuple Tuple(Src, Line, Col);
|
||||
unsigned MachineFunction::getOrCreateDebugLocID(GlobalVariable *CompileUnit,
|
||||
unsigned Line, unsigned Col) {
|
||||
DebugLocTuple Tuple(CompileUnit, Line, Col);
|
||||
DenseMap<DebugLocTuple, unsigned>::iterator II
|
||||
= DebugLocInfo.DebugIdMap.find(Tuple);
|
||||
if (II != DebugLocInfo.DebugIdMap.end())
|
||||
|
Reference in New Issue
Block a user