mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 22:24:07 +00:00
Transforms: Stop using DIDescriptor::is*() and auto-casting
Same as r234255, but for lib/Analysis and lib/Transforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -186,7 +186,8 @@ static void CloneDebugInfoMetadata(Function *NewFunc, const Function *OldFunc,
|
||||
// Ensure that OldFunc appears in the map.
|
||||
// (if it's already there it must point to NewFunc anyway)
|
||||
VMap[OldFunc] = NewFunc;
|
||||
DISubprogram NewSubprogram(MapMetadata(OldSubprogramMDNode, VMap));
|
||||
DISubprogram NewSubprogram =
|
||||
cast<MDSubprogram>(MapMetadata(OldSubprogramMDNode, VMap));
|
||||
|
||||
for (DICompileUnit CU : Finder.compile_units()) {
|
||||
DIArray Subprograms(CU.getSubprograms());
|
||||
|
Reference in New Issue
Block a user