[llvm-dev] Global variables in C

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Fri Aug 30 15:16:26 PDT 2019

Hi Umesh,

On Fri, 30 Aug 2019 at 18:43, Umesh Kalappa via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Currently we are overriding this semantics  by iterating the
> Module.globals() and if "Name"doesn't exist ,the we are creating the
> new instance else we get the reference to it .

It sounds like you want Module::getOrInsertGlobal.



More information about the llvm-dev mailing list