title: How do I get LLVM types from Clang?
body: <p>I'm looking to write a tool using Clang. The details are fairly immaterial, but what I'm looking to do is get an llvm type from Clang. For example, I'd like to go from "printf" to <code>llvm::Function*</code>, and "size_t" to a <code>llvm::Type*</code>. But I can't find any functions in Clang that give out these functions. I've decided that I can ask Clang to mangle the names, and then ask the <code>llvm::Module*</code> for the data- but I can't find how to get an <code>llvm::Module*</code> that corresponds to a Clang invocation.</p>
  
  <p>How can I get the internal LLVM data from Clang?</p>