[llvm-commits] [poolalloc] r134253 - /poolalloc/trunk/lib/DSA/StdLibPass.cpp
Matthew Wala
mttjwl at gmail.com
Fri Jul 1 13:17:52 PDT 2011
Author: wala1
Date: Fri Jul 1 15:17:52 2011
New Revision: 134253
URL: http://llvm.org/viewvc/llvm-project?rev=134253&view=rev
Log:
Allow DSA to recognize more functions:
1) sc.fscallinfo_debug
2) scanf() family
3) __printf_chk() family
Modified:
poolalloc/trunk/lib/DSA/StdLibPass.cpp
Modified: poolalloc/trunk/lib/DSA/StdLibPass.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/StdLibPass.cpp?rev=134253&r1=134252&r2=134253&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/trunk/lib/DSA/StdLibPass.cpp Fri Jul 1 15:17:52 2011
@@ -301,6 +301,7 @@
// format string intrinsics and functions
{"sc.fsparameter", {NRET_NARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
{"sc.fscallinfo", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"sc.fscallinfo_debug",{NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
{"pool_printf", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
{"pool_fprintf", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
{"pool_sprintf", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
@@ -310,6 +311,13 @@
{"pool_warn", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
{"pool_warnx", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
{"pool_syslog", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"pool_scanf", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"pool_fscanf", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"pool_sscanf", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"pool___printf_chk", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"pool___fprintf_chk", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"pool___sprintf_chk", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
+ {"pool___snprintf_chk", {NRET_YARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
// Type Checks
{"trackArgvType", {NRET_NARGS, NRET_NARGS, NRET_NARGS, NRET_NARGS, false}},
More information about the llvm-commits
mailing list