0
有這似乎符合我需要一個構造函數:如何在模塊的末尾插入GlobalVariable?
00055 /// GlobalVariable ctor - If a parent module is specified, the global is
00056 /// automatically inserted into the end of the specified modules global list.
00057 GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage,
00058 Constant *Initializer = nullptr, const Twine &Name = "",
00059 ThreadLocalMode = NotThreadLocal, unsigned AddressSpace = 0,
00060 bool isExternallyInitialized = false);
根據下面的文檔,如果指定了父模塊的GV插在它的結束。如何指定模塊?