2

I was wondering if there was a way to access environment variables while writing an LLVM pass. In my source file, I read a certain environment variable, depending on whose value the execution is furthered. I ought to recreate that in my pass and add a few checks therein.

I would really appreciate if there was some tutorial laying out these details in form of examples.

4

1 回答 1

0

您应该能够在您的通行证中使用cstdlib 的getenv函数,就像在任何其他 C++ 代码中一样。

于 2013-11-24T08:16:10.010 回答