way to determine which version of llvm for llvm-gcc? Xcode specifically

I'd like to know if there is a way to find out which llvm version a given version of llvm-gcc is using for code generation.

Specifically, I'm working with Xcode 3.2.5's arm-apple-darwin10-llvm-g++-4.2

Calling it with --version and --verbose don't give any hints. I want to run the compiler with --emit-llvm and eventually call llc. llc isn't included in Xcode so I want to make sure I use the correct version.

Thanks in advance
--Robb Kistler

Hi Robb,

When you run llvm-gcc with -v, you should see as part of the output something like:
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2366.3)

That last bit on the end is an llvm tag version and should do the trick for what you're looking for. They generally refer to the tags at http://llvm.org/svn/llvm-project/llvm/tags/Apple.

-Jim

Thank you, exactly what I needed!