在做旧教程时,我经常看到使用了 getGlobalContext()。但是,在 LLVM 3.9.1 中,无法再找到此函数。
对于等效行为,我应该用什么替换这些调用?
最佳答案
你可以使用
static LLVMContext TheContext;
关于c++ - 在 LLVM 3.9.1 中,我应该用什么替换 getGlobalContext()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41760481/