Skip to content

Commit

Permalink
Use LLVM_DEBUG instead of DEBUG in final GC lowering pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanvdc committed Jun 7, 2019
1 parent 7b59c72 commit 5ad648a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/llvm-final-gc-lowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
#include "llvm-pass-helpers.h"

#define DEBUG_TYPE "final_gc_lowering"
#if JL_LLVM_VERSION < 70000
#define LLVM_DEBUG DEBUG
#endif

using namespace llvm;

Expand Down Expand Up @@ -281,7 +284,7 @@ static void replaceInstruction(

bool FinalLowerGC::runOnFunction(Function &F)
{
DEBUG(dbgs() << "FINAL GC LOWERING: Processing function " << F.getName() << "\n");
LLVM_DEBUG(dbgs() << "FINAL GC LOWERING: Processing function " << F.getName() << "\n");
// Check availability of functions again since they might have been deleted.
initFunctions(*F.getParent());
if (!ptls_getter)
Expand Down

0 comments on commit 5ad648a

Please sign in to comment.