dg icon indicating copy to clipboard operation
dg copied to clipboard

CFG include is missing condition for LLVM version <= 3.5

Open thierry-tct opened this issue 6 years ago • 2 comments

In order to support LLVM <= 3.5, the following source code file should include CFG.h as following:

#if ((LLVM_VERSION_MAJOR == 3) && (LLVM_VERSION_MINOR < 5))
 #include <llvm/Support/CFG.h>
#else
 #include <llvm/IR/CFG.h>
#endif

The files are:

  • lib/llvm/analysis/ThreadRegions/sources/Graphs/GraphBuilder.cpp
  • include/dg/llvm/analysis/ValueRelations/ValueRelationsAnalysis.h
  • lib/llvm/analysis/ControlDependence/GraphBuilder.cpp
  • include/dg/llvm/analysis/ValueRelations/ValueRelations.h

thierry-tct avatar Dec 16 '19 11:12 thierry-tct

Hi, could you please provide a pull-request? Thanks.

mchalupa avatar Dec 17 '19 12:12 mchalupa

Hi, could you please provide a pull-request? Thanks.

Hi, we fix it. Later, we will provide a pull-request.

Marvinmw avatar Jan 08 '20 17:01 Marvinmw