<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt;color:#000000;"><div>Hi,<br><br>I wanted to print the contents of a DICompileUnit object but encountered a segmentation fault  after  invoking dump()/print method. Here is the code snippet<br>...<br> unsigned DW_LANG_XXX = 0x8001;<br> llvm::StringRef filename("l8.cpp");<br> llvm::StringRef dir("/home/cfiles");<br> const char* producer = 
 "Group";                                                                                                          <br> llvm::DIFactory DICreator(*theModule);<br> llvm::DICompileUnit diCompUnit = DICreator.CreateCompileUnit<br>   (DW_LANG_XXX, filename, dir, llvm::StringRef(producer), true);<br><br> diCompUnit.dump();   // segmentation fault  <br><br>Is anything wrong with my code?<br><br>Thank
 you,<br><br>Best regards,<br>Nurudeen.                                                                                                                                         <br><br> <br></div>
</div></body></html>