remove global variables for current generic class and method, pass them around by parameters instead
various fixes pointed out by Nicolas Geoffray

llvm-svn: 54951
19 files changed