mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Avoid cast<>, use light weith wrapper directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f3ee514419
commit
f6bac3e4bd
@ -2629,13 +2629,13 @@ private:
|
|||||||
if (!RootScope) return;
|
if (!RootScope) return;
|
||||||
|
|
||||||
// Get the subprogram debug information entry.
|
// Get the subprogram debug information entry.
|
||||||
DISubprogram *SPD = cast<DISubprogram>(RootScope->getDesc());
|
DISubprogram SPD(RootScope->getDesc()->getGV());
|
||||||
|
|
||||||
// Get the compile unit context.
|
// Get the compile unit context.
|
||||||
CompileUnit *Unit = FindCompileUnit(SPD->getCompileUnit());
|
CompileUnit *Unit = FindCompileUnit(SPD.getCompileUnit());
|
||||||
|
|
||||||
// Get the subprogram die.
|
// Get the subprogram die.
|
||||||
DIE *SPDie = Unit->getDieMapSlotFor(SPD->getGV());
|
DIE *SPDie = Unit->getDieMapSlotFor(SPD.getGV());
|
||||||
assert(SPDie && "Missing subprogram descriptor");
|
assert(SPDie && "Missing subprogram descriptor");
|
||||||
|
|
||||||
// Add the function bounds.
|
// Add the function bounds.
|
||||||
|
Loading…
Reference in New Issue
Block a user