- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试关注 https://github.com/lsegal/my_toy_compiler ,但即使它已针对 LLVM 3.8.0 进行了更新,我也无法使用来自 brew 的 LLVM 3.8.4 和 --with-clang --with-lld --with-jit --with-python
对其进行编译.具体来说,我收到以下错误,use of undeclared identifier 'getGlobalContext'
.
另外符号 getGlobalContext
未出现在 /usr/local/opt/llvm/include/llvm/IR/LLVMContext.h
中或者实际上是 /usr/local/opt/llvm/include
中的任何地方目录。
我预计此功能最近已被弃用(我无法找到任何证据),或者我没有正确构建它。
任何提示将不胜感激。
注意 我看过Trouble linking against LLVM with project including Flex and Bison它并没有解决我的特定问题
最佳答案
我对从 svn 构建的 4.0.0 版本有同样的问题。我发现以下提交 266379 删除了所有出现的 getGlobalConfig()
https://reviews.llvm.org/rL266379
此提交更改了定义内部上下文变量的示例:
曾是:
static IRBuilder<> Builder(getGlobalContext());
static LLVMContext TheContext;
static IRBuilder<> Builder(TheContext);
关于compiler-construction - 绑定(bind) LLVM 3.8.4 no getGlobalContext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38579802/
我正在 MS CRM 功能区中创建一个自定义按钮,用于在实体中创建一条记录(我使用的是 odata),此按钮午餐是一个使用“GetGlobalContext”方法获取上下文的 JavaScript 函
我正在尝试关注 https://github.com/lsegal/my_toy_compiler ,但即使它已针对 LLVM 3.8.0 进行了更新,我也无法使用来自 brew 的 LLVM 3.8
在做旧教程时,我经常看到使用了 getGlobalContext()。但是,在 LLVM 3.9.1 中,无法再找到此函数。 对于等效行为,我应该用什么替换这些调用? 最佳答案 你可以使用 stati
我是一名优秀的程序员,十分优秀!