[llvm] r224720 - [C API] Expose LLVMGetGlobalValueAddress and LLVMGetFunctionAddress.

Vasileios Kalintiris Vasileios.Kalintiris at imgtec.com
Thu Jan 15 02:36:52 PST 2015


Hi Ramkumar,

The reason is that every other test is calling LLVMGetPointerToGlobal(), which returns a pointer, and as a result every other union has only pointer members (i.e. the union members have the same size).

Regards,
Vasileios

________________________________________
From: Ramkumar Ramachandra [artagnon at gmail.com]
Sent: 14 January 2015 20:30
To: Vasileios Kalintiris
Cc: Peter Zotov; llvm-commits at cs.uiuc.edu; Daniel Sanders
Subject: Re: [llvm] r224720 - [C API] Expose LLVMGetGlobalValueAddress and LLVMGetFunctionAddress.

Vasileios Kalintiris wrote:
> The problem is that on a 32-bit Big Endian machine, the "usable" union field holds the upper part of the address
> that we get from LLVMGetGlobalValueAddress or LLVMGetFunctionAddress in tests gva and gfa respectively.

I'm curious: What about the other unions in the file that are part of
other tests?




More information about the llvm-commits mailing list