llvm-6502/lib/IR
Diego Novillo f05b45fdb2 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
2014-03-03 20:06:11 +00:00
..
AsmWriter.cpp Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
AsmWriter.h
AttributeImpl.h
Attributes.cpp Revert "[C++11] Replace LLVM atomics with std::atomic." 2014-03-03 18:02:34 +00:00
AutoUpgrade.cpp
BasicBlock.cpp [C++11] Replace llvm::next and llvm::prior with std::next and std::prev. 2014-03-02 12:27:27 +00:00
CMakeLists.txt
ConstantFold.cpp
ConstantFold.h
Constants.cpp [C++11] Replace llvm::next and llvm::prior with std::next and std::prev. 2014-03-02 12:27:27 +00:00
ConstantsContext.h [C++11] Use std::tie to simplify compare operators. 2014-03-03 19:58:30 +00:00
Core.cpp Store a DataLayout in Module. 2014-02-25 20:01:08 +00:00
DataLayout.cpp Fix typo. Thanks to Roman Divacky for noticing it. 2014-02-26 17:05:38 +00:00
DebugInfo.cpp Pass to emit DWARF path discriminators. 2014-03-03 20:06:11 +00:00
DebugLoc.cpp
DiagnosticInfo.cpp Revert "[C++11] Replace LLVM atomics with std::atomic." 2014-03-03 18:02:34 +00:00
DiagnosticPrinter.cpp
DIBuilder.cpp Add DWARF discriminator support to DILexicalBlocks. 2014-03-03 18:53:17 +00:00
Dominators.cpp Remove unnecessary typename. 2014-02-16 14:12:35 +00:00
Function.cpp
GCOV.cpp Replace the F_Binary flag with a F_Text one. 2014-02-24 18:20:12 +00:00
Globals.cpp Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
GVMaterializer.cpp
InlineAsm.cpp
Instruction.cpp Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Instructions.cpp
IntrinsicInst.cpp Remove spurious emacs major mode marker, these should only go on .h files. 2014-02-26 03:10:45 +00:00
IRBuilder.cpp
IRPrintingPasses.cpp
LeakDetector.cpp
LeaksContext.h
LegacyPassManager.cpp Remove unnecessary llvm:: qualification. 2014-02-26 23:27:16 +00:00
LLVMBuild.txt
LLVMContext.cpp Add 'remark' diagnostic type in LLVM 2014-02-28 09:08:45 +00:00
LLVMContextImpl.cpp
LLVMContextImpl.h Pass to emit DWARF path discriminators. 2014-03-03 20:06:11 +00:00
Makefile
Mangler.cpp Add back r201608, r201622, r201624 and r201625 2014-02-19 17:23:20 +00:00
Metadata.cpp
Module.cpp Fix resetting the DataLayout in a Module. 2014-02-25 22:23:04 +00:00
Pass.cpp Constify the Optnone checks in IR passes. 2014-02-26 01:23:26 +00:00
PassManager.cpp [C++11] Replace llvm::tie with std::tie. 2014-03-02 13:30:33 +00:00
PassRegistry.cpp
SymbolTableListTraitsImpl.h
Type.cpp
TypeFinder.cpp
Use.cpp
User.cpp
Value.cpp
ValueSymbolTable.cpp
ValueTypes.cpp
Verifier.cpp Check that GlobalAliases don't have section or alignment. 2014-02-13 18:26:41 +00:00