[LLVMdev] Extracting type information from header files

John McCall rjmccall at apple.com
Wed Mar 3 15:07:50 PST 2010


On Mar 3, 2010, at 1:14 PM, Samuel Crow wrote:
> Clang supports LLVM Bitcode formatted precompiled headers if that is what you are looking for.  LLVM-GCC might be a different story though.  Also note that these headers will be different from one operating system to the next.  If you're looking for something portable, test out my wrapper at http://sourceforge.net/projects/llvmlibc/ in the SVN repo.

Clang's PCH format is Clang AST bitcode, not LLVM bitcode.  If we stored PCH as LLVM IR we'd lose enormous amounts of information even from C, and Objective C and C++ would be completely impossible.

They use the same binary-stream library, but that's where the similarities end.

John.



More information about the llvm-dev mailing list