change to RegisterPass and RegisterAnalysisGroup

Signed-off-by: xiehuc <xiehuc@gmail.com>