Displaying 2 results from an estimated 2 matches for "a413a1b9".
2019 Feb 22
1
Create the GlobalVariable which have extern in one header file
...cedence over
this and specify the actual data.
You almost certainly want GlobalValue::ExternalLinkage for a
bog-standard global variable.
Cheers.
Tim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190222/a413a1b9/attachment-0001.html>
2019 Feb 22
2
Create the GlobalVariable which have extern in one header file
Hi
Good day. I am facing issue with creating a GlobalVariable. I already have an extern for that global in a header file to use it in the following way
extern const void* DATA_TABLE[];
And with a LLVM PASS, I am trying to create this array with the same name and with initializer. So, I have following:
GlobalVariable *gvar_data = new GlobalVariable(
M, blockItems->getType(), true,