unsigned getOrCreateDebugLocID(unsigned Src, unsigned Line, unsigned Col);
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
- const DebugLocTuple &getDebugLocTuple(DebugLoc DL);
+ DebugLocTuple getDebugLocTuple(DebugLoc DL) const;
};
//===--------------------------------------------------------------------===//
}
/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
-const DebugLocTuple &MachineFunction::getDebugLocTuple(DebugLoc DL) {
+DebugLocTuple MachineFunction::getDebugLocTuple(DebugLoc DL) const {
unsigned Idx = DL.getIndex();
assert(Idx < DebugLocInfo.DebugLocations.size() &&
"Invalid index into debug locations!");