1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Avoid cast<>, use light weith wrapper directly.

llvm-svn: 62115
This commit is contained in:
Devang Patel 2009-01-12 22:58:14 +00:00
parent 261d3cb2af
commit 283436f4b9

View File

@ -2629,13 +2629,13 @@ private:
if (!RootScope) return;
// Get the subprogram debug information entry.
DISubprogram *SPD = cast<DISubprogram>(RootScope->getDesc());
DISubprogram SPD(RootScope->getDesc()->getGV());
// Get the compile unit context.
CompileUnit *Unit = FindCompileUnit(SPD->getCompileUnit());
CompileUnit *Unit = FindCompileUnit(SPD.getCompileUnit());
// Get the subprogram die.
DIE *SPDie = Unit->getDieMapSlotFor(SPD->getGV());
DIE *SPDie = Unit->getDieMapSlotFor(SPD.getGV());
assert(SPDie && "Missing subprogram descriptor");
// Add the function bounds.