search for: creatbasictype

Displaying 3 results from an estimated 3 matches for "creatbasictype".

Did you mean: createbasictype
2011 Mar 29
1
[LLVMdev] Accessing metadata & creating DIVariable
...able to create DW_TAG_file_type without > CompileUnit"' failed. > > Which had me scratching my head, If DIFile needs a CU it  would be an > argument to DIBuilder::.createFile > Also type.Verify() thought createBasicType succeeds. I meant type.Verify() fails, though the call creatBasicType succeeds.
2011 Mar 28
3
[LLVMdev] Accessing metadata & creating DIVariable
Hi, I am wondering if someone can guide me in adding metadata to IR which already contains some metadata. I am trying to add dbg.declare inst for a local variable I added to a function. I used the DIBuilder to build a DIVariable. When I try to compile llc fails with following message. llc: MCAsmStreamer.cpp:273: virtual void<unnamed>::MCAsmStreamer::EmitLabel(llvm::MCSymbol*): Assertion
2011 Mar 29
0
[LLVMdev] Accessing metadata & creating DIVariable
...without >> CompileUnit"' failed. >> >> Which had me scratching my head, If DIFile needs a CU it would be an >> argument to DIBuilder::.createFile >> Also type.Verify() thought createBasicType succeeds. > > I meant type.Verify() fails, though the call creatBasicType succeeds. You need to call di.createCompileUnit() once for your translation unit in the beginning. You don't need to keep track of CU yourself. DIBuilder will take care of it. After words, you can call di.createBasicType(..) and it will work. - Devang