/JIT/DeadGlobalElim.h

http://unladen-swallow.googlecode.com/ · C Header · 18 lines · 10 code · 4 blank · 4 comment · 0 complexity · d2116883c1f81eac1c20ddd85b16d7fa MD5 · raw file

  1. // -*- C++ -*-
  2. #ifndef UTIL_DEADGLOBALELIM_H
  3. #define UTIL_DEADGLOBALELIM_H
  4. #ifndef __cplusplus
  5. #error This header expects to be included only in C++ source
  6. #endif
  7. #include "llvm/Pass.h"
  8. // Garbage-collects dead LLVM GlobalValues. Given a ModuleProvider,
  9. // does the right thing when confronted with a GlobalValue backed by
  10. // bitcode.
  11. llvm::ModulePass *PyCreateDeadGlobalElimPass(
  12. const llvm::DenseSet<llvm::AssertingVH<const llvm::GlobalValue> > *
  13. bitcode_gvs);
  14. #endif // UTIL_DEADGLOBALELIM_H