fixes #434 :: add llvm 2.8 support

This commit is contained in:
Moritz Warning
2010-10-23 13:38:26 +02:00
parent 233299e5c8
commit c151d37365
9 changed files with 111 additions and 68 deletions

View File

@@ -31,9 +31,9 @@ STATISTIC(NumFunctions, "Number of function bodies removed");
STATISTIC(NumVariables, "Number of global initializers removed");
namespace {
struct VISIBILITY_HIDDEN StripExternals : public ModulePass {
struct LLVM_LIBRARY_VISIBILITY StripExternals : public ModulePass {
static char ID; // Pass identification, replacement for typeid
StripExternals() : ModulePass(&ID) {}
StripExternals() : ModulePass(ID) {}
// run - Do the StripExternals pass on the specified module.
//