yodamaster / include-what-you-use

Automatically exported from code.google.com/p/include-what-you-use
Other
0 stars 0 forks source link

Building with LLVM-2.9 and CLANG-2.9 results in error (no setLLVMContext) #43

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I downloaded and built llvm-2.9 and clang-2.9 from tarballs (I don't have svn 
access, so I can't use the repo versions).

When trying to build include-what-you-use in 
llvm-2.9/tools/clang/tools/include-what-you-use
I get:
wyu.cc: In function ‘int main(int, const char**)’:
iwyu.cc:3090: error: ‘class clang::CompilerInstance’ has no member named 
‘setLLVMContext’

Looking at the CompilerInstance.h header, I agree - there's no setLLVMContext 
method there.

I don't see that method in the svn repo version either:
http://llvm.org/svn/llvm-project/cfe/trunk/include/clang/Frontend/CompilerInstan
ce.h

Any suggestions?

Original issue reported on code.google.com by rmgir...@gmail.com on 31 May 2011 at 1:08

GoogleCodeExporter commented 9 years ago
Whoops - this looks like a dupe of issue 13 - I should have searched "All 
issues", not the default "Open Issues".

Ok to close as dupe.

Original comment by rmgir...@gmail.com on 31 May 2011 at 1:10

GoogleCodeExporter commented 9 years ago
Closed as a dup, but I'm curious what version of iwyu you were using, and how 
you got it.  I thought this was fixed several months ago?

Original comment by csilv...@gmail.com on 31 May 2011 at 10:19

GoogleCodeExporter commented 9 years ago
I downloaded the 0.1 tarball linked on the main page.  Now I'm trying to build 
the svn version, but have to figure out the llvm and clang svn revs I need.

Original comment by rmgir...@gmail.com on 31 May 2011 at 11:46

GoogleCodeExporter commented 9 years ago
Ah, gotcha.  I should probably just make a new tarball.  That one is really old.

Original comment by csilv...@gmail.com on 1 Jun 2011 at 1:30

GoogleCodeExporter commented 9 years ago
OK, I made a new tarball that compiles against llvm+clang 2.9.  It's still 
rather old, but better than the old default tarball.

Original comment by csilv...@gmail.com on 9 Jun 2011 at 12:40

GoogleCodeExporter commented 9 years ago
Excellent, thanks!

Original comment by rmgir...@gmail.com on 10 Jun 2011 at 2:01