Commits

arrowdodger committed c6373f2

Proper fix for previous commit.

Comments (0)

Files changed (1)

lib/Module/Optimize.cpp

 #if LLVM_VERSION_CODE < LLVM_VERSION(3, 2)
       addPass(Passes, createInternalizePass(true));
 #else
-      addPass(Passes, createInternalizePass());
+      {
+        std::vector<const char *> v;
+        v.push_back("main");
+        addPass(Passes, createInternalizePass(v));
+      }
 #endif
     // Propagate constants at call sites into the functions they call.  This
     // opens opportunities for globalopt (and inlining) by substituting function