PageRenderTime 129ms CodeModel.GetById 46ms app.highlight 1ms RepoModel.GetById 70ms app.codeStats 0ms

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