Skip to content
Permalink
Browse files

LLVM 7.0 fix

  • Loading branch information
pjaaskel committed Oct 15, 2019
1 parent 5dc4464 commit e36e453bae17ad108ac115cabb44c458bb420841
Showing with 5 additions and 2 deletions.
  1. +5 −2 lib/CL/pocl_llvm_wg.cc
@@ -61,16 +61,19 @@ IGNORE_COMPILER_WARNING("-Wunused-parameter")
#include <llvm/Analysis/TargetLibraryInfo.h>
#include <llvm/Analysis/TargetTransformInfo.h>
#include <llvm/IR/LegacyPassManager.h>
#include <llvm/IR/PassTimingInfo.h>

#define PassManager legacy::PassManager

#include "linker.h"

// Enable to get the LLVM pass execution timing report dumped to console after
// each work-group IR function generation.
// each work-group IR function generation. Requires LLVM > 7.
// #define DUMP_LLVM_PASS_TIMINGS

#ifdef DUMP_LLVM_PASS_TIMINGS
#include <llvm/IR/PassTimingInfo.h>
#endif

using namespace llvm;

/**

0 comments on commit e36e453

Please sign in to comment.
You can’t perform that action at this time.