Skip to content

Commit

Permalink
Don't proc debug info unless required.
Browse files Browse the repository at this point in the history
  • Loading branch information
agemogolk committed Dec 5, 2012
1 parent c0a5d99 commit 2c3241e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions compiler/codegen.cpp
Expand Up @@ -3722,7 +3722,8 @@ bool codegenStatement(StatementPtr stmt,
EnvPtr env,
CodegenContext* ctx)
{
DebugLocationContext loc(stmt->location, ctx);
if (llvmDIBuilder != NULL)
DebugLocationContext loc(stmt->location, ctx);

switch (stmt->stmtKind) {

Expand Down Expand Up @@ -4270,11 +4271,12 @@ void codegenCollectLabels(llvm::ArrayRef<StatementPtr> statements,

EnvPtr codegenBinding(BindingPtr x, EnvPtr env, CodegenContext* ctx)
{

DebugLocationContext loc(x->location, ctx);

int line, column;
llvm::DIFile file = getDebugLineCol(x->location, line, column);
llvm::DIFile file;
if (llvmDIBuilder != NULL) {
DebugLocationContext loc(x->location, ctx);
getDebugLineCol(x->location, line, column);
}
switch(x->bindingKind){
case VAR : {

Expand Down

0 comments on commit 2c3241e

Please sign in to comment.