diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-16 06:09:35 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-16 06:09:35 +0000 |
commit | c0e17df3ce0a4122583a74656ff9444a330ece30 (patch) | |
tree | d0b0083fdb7ad0089385ab297a9d7d8392005a89 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 982adb518c34bb8a00d27cf7e42806b57113af9f (diff) | |
download | llvm-c0e17df3ce0a4122583a74656ff9444a330ece30.zip llvm-c0e17df3ce0a4122583a74656ff9444a330ece30.tar.gz llvm-c0e17df3ce0a4122583a74656ff9444a330ece30.tar.bz2 |
Replace DebugLocTuple with DILocation.
llvm-svn: 93630
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index ae9451c..85c4540 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -426,12 +426,12 @@ unsigned MachineFunction::addLiveIn(unsigned PReg, return VReg; } -/// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object. -DebugLocTuple MachineFunction::getDebugLocTuple(DebugLoc DL) const { +/// getDILocation - Get the DILocation for a given DebugLoc object. +DILocation MachineFunction::getDILocation(DebugLoc DL) const { unsigned Idx = DL.getIndex(); assert(Idx < DebugLocInfo.DebugLocations.size() && "Invalid index into debug locations!"); - return DebugLocInfo.DebugLocations[Idx]; + return DILocation(DebugLocInfo.DebugLocations[Idx]); } //===----------------------------------------------------------------------===// |