[PATCH] DebugInfo: Emit info for constant expressions in template arguments

David Blaikie dblaikie at gmail.com
Wed Aug 21 08:39:22 PDT 2013



================
Comment at: test/CodeGenCXX/debug-info-template.cpp:72
@@ -71,1 +71,3 @@
 // CHECK: [[TCNARG8]] = {{.*}}metadata !"Is", null, metadata [[EMPTY]], {{.*}} ; [ DW_TAG_GNU_template_parameter_pack ]
+// CHECK: metadata [[TGI:![0-9]*]], i32 0, i32 1, %struct.tmpl_guid* @tgi, null} ; [ DW_TAG_variable ] [tgi]
+// CHECK: [[TGIT:![0-9]*]] = {{.*}}, metadata [[TGIARGS:![0-9]*]]} ; [ DW_TAG_structure_type ] [tmpl_guid<&__uuidof(uuid)>]
----------------
You don't seem to be using the [[TGI]] variable you captured here, did you intend to?
Possibly related, I assume you meant to check that the TGI variable is of type TGIT? (I don't believe that's strictly necessary - sort of 'belt and bracers', but not wrong either - we've checked that template types can be correctly associated with variables of that type, we could just say that we're assuming that's correct here & only test the template type)


http://llvm-reviews.chandlerc.com/D1453



More information about the cfe-commits mailing list