[llvm-commits] [poolalloc] r131690 - /poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
Arushi Aggarwal
aggarwa4 at illinois.edu
Thu May 19 15:16:52 PDT 2011
Author: aggarwa4
Date: Thu May 19 17:16:51 2011
New Revision: 131690
URL: http://llvm.org/viewvc/llvm-project?rev=131690&view=rev
Log:
Added comment.
Modified:
poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
Modified: poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c?rev=131690&r1=131689&r2=131690&view=diff
==============================================================================
--- poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c (original)
+++ poolalloc/trunk/runtime/DynamicTypeChecks/TypeRuntime.c Thu May 19 17:16:51 2011
@@ -61,10 +61,13 @@
}
}
+/**
+ * Copy arguments into a new array, and initialize
+ * metadata for that location to TOP/initialized.
+ */
void * trackArgvType(int argc, char **argv) {
char ** argv_temp = (char **)malloc((sizeof(char*)*(argc+1)));
-
int index = 0;
for (; index < argc; ++index) {
char *argv_index_temp =
@@ -92,6 +95,7 @@
printf("Global: %p, %p = %u | %" PRIu64 " bytes\n", ptr, (void *)p, typeNumber, size);
#endif
}
+
/**
* Record the type stored at ptr(of size size) and replicate it
*/
More information about the llvm-commits
mailing list