Initialize the barrier pass llvm::initializeIPO
authorHal Finkel <hfinkel@anl.gov>
Thu, 12 Dec 2013 20:45:08 +0000 (20:45 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 12 Dec 2013 20:45:08 +0000 (20:45 +0000)
The barrier pass is a temporary hack, and should go away soon. Nevertheless, if
we don't initialize it, then opt will not understand -barrier, and this will
break bugpoint (because when it dumps the passes from the default pass manager
-barrier will be there).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197177 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/IPO.cpp

index 5d563d8bbf512fd07daa3d66b739bc7f22ff58b3..b4d31d8d6fc25b85fb0a4bd8c48f522d830f760a 100644 (file)
@@ -44,6 +44,7 @@ void llvm::initializeIPO(PassRegistry &Registry) {
   initializeStripDebugDeclarePass(Registry);
   initializeStripDeadDebugInfoPass(Registry);
   initializeStripNonDebugSymbolsPass(Registry);
+  initializeBarrierNoopPass(Registry);
 }
 
 void LLVMInitializeIPO(LLVMPassRegistryRef R) {