mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83181 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -343,12 +343,6 @@ public:
|
|||||||
// Debug location.
|
// Debug location.
|
||||||
//
|
//
|
||||||
|
|
||||||
/// 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 getOrCreateDebugLocID(MDNode *CompileUnit,
|
|
||||||
unsigned Line, unsigned Col);
|
|
||||||
|
|
||||||
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
|
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
|
||||||
DebugLocTuple getDebugLocTuple(DebugLoc DL) const;
|
DebugLocTuple getDebugLocTuple(DebugLoc DL) const;
|
||||||
|
|
||||||
|
@@ -351,23 +351,6 @@ unsigned MachineFunction::addLiveIn(unsigned PReg,
|
|||||||
return VReg;
|
return VReg;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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(MDNode *CompileUnit,
|
|
||||||
unsigned Line, unsigned Col) {
|
|
||||||
DebugLocTuple Tuple(CompileUnit, Line, Col);
|
|
||||||
DenseMap<DebugLocTuple, unsigned>::iterator II
|
|
||||||
= DebugLocInfo.DebugIdMap.find(Tuple);
|
|
||||||
if (II != DebugLocInfo.DebugIdMap.end())
|
|
||||||
return II->second;
|
|
||||||
// Add a new tuple.
|
|
||||||
unsigned Id = DebugLocInfo.DebugLocations.size();
|
|
||||||
DebugLocInfo.DebugLocations.push_back(Tuple);
|
|
||||||
DebugLocInfo.DebugIdMap[Tuple] = Id;
|
|
||||||
return Id;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
|
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
|
||||||
DebugLocTuple MachineFunction::getDebugLocTuple(DebugLoc DL) const {
|
DebugLocTuple MachineFunction::getDebugLocTuple(DebugLoc DL) const {
|
||||||
unsigned Idx = DL.getIndex();
|
unsigned Idx = DL.getIndex();
|
||||||
|
Reference in New Issue
Block a user