[llvm-dev] OpaqueType:: get()

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Sat Aug 25 16:44:09 PDT 2018


On Fri, 24 Aug 2018 at 21:53, Ratnesh Tiwari <ratneshtr09 at gmail.com> wrote:
> Here it is used OpaqueType::get() , So according to you I have to first create StrructType like "StructType::create(LLVMContext & Context)" and then use StructType::get()?

Nope, just use StructType::create. get is used when you already know
the members and want an unnamed struct by the looks of it, which
doesn't apply to your situation,

Tim.


More information about the llvm-dev mailing list