forked from OSchip/llvm-project
parent
22e157009c
commit
9c13eeac99
|
@ -1824,7 +1824,7 @@ void CGDebugInfo::UpdateLineDirectiveRegion(CGBuilderTy &Builder) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/// EmitRegionStart- Constructs the debug code for entering a declarative
|
/// EmitRegionStart- Constructs the debug code for entering a declarative
|
||||||
/// region - "llvm.dbg.region.start.".
|
/// region - beginning of a DW_TAG_lexical_block.
|
||||||
void CGDebugInfo::EmitRegionStart(CGBuilderTy &Builder) {
|
void CGDebugInfo::EmitRegionStart(CGBuilderTy &Builder) {
|
||||||
llvm::DIDescriptor D =
|
llvm::DIDescriptor D =
|
||||||
DBuilder.createLexicalBlock(RegionStack.empty() ?
|
DBuilder.createLexicalBlock(RegionStack.empty() ?
|
||||||
|
@ -1838,11 +1838,11 @@ void CGDebugInfo::EmitRegionStart(CGBuilderTy &Builder) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// EmitRegionEnd - Constructs the debug code for exiting a declarative
|
/// EmitRegionEnd - Constructs the debug code for exiting a declarative
|
||||||
/// region - "llvm.dbg.region.end."
|
/// region - end of a DW_TAG_lexical_block.
|
||||||
void CGDebugInfo::EmitRegionEnd(CGBuilderTy &Builder) {
|
void CGDebugInfo::EmitRegionEnd(CGBuilderTy &Builder) {
|
||||||
assert(!RegionStack.empty() && "Region stack mismatch, stack empty!");
|
assert(!RegionStack.empty() && "Region stack mismatch, stack empty!");
|
||||||
|
|
||||||
// Provide an region stop point.
|
// Provide a region stop point.
|
||||||
EmitStopPoint(Builder);
|
EmitStopPoint(Builder);
|
||||||
|
|
||||||
RegionStack.pop_back();
|
RegionStack.pop_back();
|
||||||
|
|
Loading…
Reference in New Issue