I want to find a global variable by name in some module ,
I find LLVM function Module::getGlobalVariable(string name,Type* ty);
My question is , is it necessary to specify the global variable type (second param) ?
Why not just
I look up the source , and find that it depend on SymbolTable.find()
and SymbolTable only support find with type .is it True ? or I make something wrong ?