consider below test demonstration
$cat test.c
int oldname = 1;
extern int newname attribute((alias("oldname")));
$clang -g -O0 test.c
$gdb a.out
(gdb) pt oldname
type = int
(gdb) pt newname
type = <data variable, no debug info>
(gdb) p newname
'newname' has unknown type; cast it to its declared type
debugger is unable to print newname types and value because clang does not emit debug info for newname.
This patch supports having debug info for alias variable as imported entity.
Fixes PR50052.
Var is never used in the EmitGlobalAlias ,we don't need the same.