[llvm-commits] [poolalloc] r57510 - /poolalloc/trunk/lib/DSA/StdLibPass.cpp

John Criswell criswell at uiuc.edu
Tue Oct 14 10:21:25 PDT 2008


Author: criswell
Date: Tue Oct 14 12:21:25 2008
New Revision: 57510

URL: http://llvm.org/viewvc/llvm-project?rev=57510&view=rev
Log:
Add a NULL entry to the end of the special function table to terminate the
table.
Added spaces between comment markers and comment text to make reading them
easier.

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=57510&r1=57509&r2=57510&view=diff

==============================================================================
--- poolalloc/trunk/lib/DSA/StdLibPass.cpp (original)
+++ poolalloc/trunk/lib/DSA/StdLibPass.cpp Tue Oct 14 12:21:25 2008
@@ -60,7 +60,7 @@
   {"fstat",      {NRET_YNARGS, NRET_NYARGS, NRET_NARGS, false, false, false}},
   {"lstat",      {NRET_YNARGS, NRET_NYARGS, NRET_NARGS, false, false, false}},
 
-  //printf not strictly true, %n could cause a write
+  // printf not strictly true, %n could cause a write
   {"printf",     {NRET_YARGS,  NRET_NARGS,  NRET_NARGS, false, false, false}},
   {"fprintf",    {NRET_YARGS,  NRET_YNARGS, NRET_NARGS, false, false, false}},
   {"sprintf",    {NRET_YARGS,  NRET_YNARGS, NRET_NARGS, false, false, false}},
@@ -140,16 +140,17 @@
   {"fopen",      {false,  true,  true,  true, false, false, false, false, false}},
   {"getcwd",     { true,  true,  true,  true,  true,  true, false,  true,  true}},
 #endif
-  //C++ functions, as mangled on linux gcc 4.2
-  //operator new(unsigned long)
+  // C++ functions, as mangled on linux gcc 4.2
+  // operator new(unsigned long)
   {"_Znwm",      {NRET_NARGS, YRET_NARGS, YRET_NARGS,  false, false, false}},
-  //operator new[](unsigned long)
+  // operator new[](unsigned long)
   {"_Znam",      {NRET_NARGS, YRET_NARGS, YRET_NARGS,  false, false, false}},
-  //operator delete(void*)
+  // operator delete(void*)
   {"_ZdlPv",     {NRET_NARGS, NRET_NARGS, NRET_YNARGS,  false, false, false}},
-  //operator delete[](void*)
+  // operator delete[](void*)
   {"_ZdaPv",     {NRET_NARGS, NRET_NARGS, NRET_YNARGS,  false, false, false}},
-
+  // Terminate the list of special functions recognized by this pass
+  {0,            {false, false, false, false, false, false}},
 };
 
 void StdLibDataStructures::eraseCallsTo(Function* F) {





More information about the llvm-commits mailing list