Adding PassInfo to PassRegistry

How do i create PassInfo for a Pass and then register it on the PassRegistry?
I need to add TargetLibraryInfoWrapperPass to the registry, because addImmutablePass() function asserts because it doesn't find Info for the pass.