Skip to content

Commit

Permalink
do not emit debuginfo with -gline-tables-only
Browse files Browse the repository at this point in the history
  • Loading branch information
rtbo committed Nov 2, 2016
1 parent 7be6805 commit cadbac0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gen/dibuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ llvm::StringRef uniqueIdent(Type* t) {

} // namespace

bool ldc::DIBuilder::mustEmitDebugInfo() { return global.params.symdebug; }
bool ldc::DIBuilder::mustEmitDebugInfo() {
return global.params.symdebug == 1 || global.params.symdebug == 2;
}

////////////////////////////////////////////////////////////////////////////////

Expand Down Expand Up @@ -728,7 +730,7 @@ DebugEmissionKind getDebugEmissionKind()


void ldc::DIBuilder::EmitCompileUnit(Module *m) {
if (!mustEmitDebugInfo()) {
if (!mustEmitDebugInfo() && global.params.symdebug != 3) {
return;
}

Expand Down

0 comments on commit cadbac0

Please sign in to comment.