[LLVMdev] Can I read llvm version through API?

Duncan Sands baldrick at free.fr
Wed Jul 21 08:39:06 PDT 2010

Hi Yuri,

> On 07/21/2010 03:39, Duncan Sands wrote:
>> maybe utils/GetSourceVersion will help.
> No, I meant can I read the version from the shared library libLLVM.so?
> I guess the answer is "no". So I will make a patch for this.

I think it is already possible to get it from the API:

$ opt -version
Low Level Virtual Machine (http://llvm.org/):
   llvm version 2.8svn
   DEBUG build with assertions.
   Built Jul 21 2010 (12:40:48).
   Host: x86_64-unknown-linux-gnu
   Host CPU: core2

   Registered Targets:

More information about the llvm-dev mailing list