When creating a new DIBuilder with an existing DICompileUnit, load the
DINodes from the current DICompileUnit so they don't get overwritten.
This is done in the MachineOutliner pass, but it didn't change the CU so
the bug never appeared. We need this if we ever want to add DINodes to
the CU after it has been created, e.g., DIGlobalVariables.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The next diff in the stack D114565 is some work to implement ideas discussed in this RFC: https://groups.google.com/g/llvm-dev/c/r03Z6JoN7d4
In that diff we add debug info to globals that we generated for PGO builds.