[llvm-commits] CVS: llvm-www/demo/index.cgi

Chris Lattner lattner at cs.uiuc.edu
Fri Feb 25 12:35:15 PST 2005



Changes in directory llvm-www/demo:

index.cgi updated: 1.38 -> 1.39
---
Log message:

Add symlinks from the generated code to the FAQ for various items


---
Diffs of the changes:  (+8 -3)

 index.cgi |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)


Index: llvm-www/demo/index.cgi
diff -u llvm-www/demo/index.cgi:1.38 llvm-www/demo/index.cgi:1.39
--- llvm-www/demo/index.cgi:1.38	Thu Feb  3 10:32:26 2005
+++ llvm-www/demo/index.cgi	Fri Feb 25 14:35:02 2005
@@ -5,7 +5,7 @@
 # doing remote web JO99C compilations.  (It could still be used for that
 # purpose, though the two scripts have diverged somewhat.)
 #
-# Last modified $Date: 2005/02/03 16:32:26 $
+# Last modified $Date: 2005/02/25 20:35:02 $
 #
 
 use strict;
@@ -95,6 +95,11 @@
   my ($input) = @_;
   $input =~ s@\b(void|bool|sbyte|ubyte|short|ushort|int|uint|long|ulong|float|double|type|label|opaque)\b@<span class="llvm_type">$1</span>@g;
   $input =~ s@\b(add|sub|mul|div|rem|and|or|xor|setne|seteq|setlt|setgt|setle|setge|phi|call|cast|to|shl|shr|vaarg|vanext|ret|br|switch|invoke|unwind|malloc|alloca|free|load|store|getelementptr|begin|end|true|false|declare|global|constant|const|internal|uninitialized|external|implementation|linkonce|weak|appending|null|to|except|not|target|endian|pointersize|big|little|volatile)\b@<span class="llvm_keyword">$1</span>@g;
+
+  # Add links to the FAQ.
+  $input =~ s@(_ZNSt8ios_base4Init[DC]1Ev)@<a href="../FAQ#iosinit">$1</a>@g;
+  $input =~ s@%__main@<a href="../FAQ#__main">%__main</a>@g;
+  $input =~ s@\bundef\b@<a href="../FAQ#undef">undef</a>@g;
   return $input;
 }
 
@@ -226,8 +231,8 @@
 print "<p>", $c->submit, "\n", $c->endform;
 
 print "\n<p>If you have questions about the LLVM code generated by the
-front-end, please <a href='/docs/FAQ.html#cfe_code'>check the FAQ</a> (e.g.,
-what is this <tt>__main</tt> thing?).  If the FAQ does not address it, please
+front-end, please <a href='/docs/FAQ.html#cfe_code'>check the FAQ</a>.
+  If the FAQ does not address it, please
 send an email to the <a
 href='http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev'>llvmdev mailing
 list</a>.</p>\n<p>Note that the generated LLVM code will be easier to read if






More information about the llvm-commits mailing list