If UseSectionsAsReferences == true, DwarfCompileUnit do not define a separate label at the beginning of the unit and getLabelBegin() cannot be used. To reference the CU, the section symbol and the offset in the debug info section should be used instead.
This fixes a crash in llvm/test/DebugInfo/Generic/2010-04-19-FramePtr.ll when NVPTX is set as a default target.