mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-16 12:24:03 +00:00
Pass to emit DWARF path discriminators.
DWARF discriminators are used to distinguish multiple control flow paths on the same source location. When this happens, instructions across basic block boundaries will share the same debug location. This pass detects this situation and creates a new lexical scope to one of the two instructions. This lexical scope is a child scope of the original and contains a new discriminator value. This discriminator is then picked up from MCObjectStreamer::EmitDwarfLocDirective to be written on the object file. This fixes http://llvm.org/bugs/show_bug.cgi?id=18270. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -21,6 +21,7 @@ using namespace llvm;
|
||||
/// initializeTransformUtils - Initialize all passes in the TransformUtils
|
||||
/// library.
|
||||
void llvm::initializeTransformUtils(PassRegistry &Registry) {
|
||||
initializeAddDiscriminatorsPass(Registry);
|
||||
initializeBreakCriticalEdgesPass(Registry);
|
||||
initializeInstNamerPass(Registry);
|
||||
initializeLCSSAPass(Registry);
|
||||
|
Reference in New Issue
Block a user