From 0b4403f9bda139345b27791ed87abfe20a1233a9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 4 Feb 2009 00:05:34 +0000 Subject: Constify and don't return a reference. llvm-svn: 63689 --- llvm/lib/CodeGen/MachineFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/MachineFunction.cpp') diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 38dd4033fb9..cf7f39140b8 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -397,7 +397,7 @@ unsigned MachineFunction::getOrCreateDebugLocID(unsigned Src, unsigned Line, } /// 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!"); -- cgit v1.2.3