[llvm-commits] [www] r136820 - /www/trunk/demo/index.cgi
Eli Friedman
eli.friedman at gmail.com
Wed Aug 3 15:24:45 PDT 2011
On Wed, Aug 3, 2011 at 3:17 PM, Tanya Lattner <tonic at nondot.org> wrote:
> Author: tbrethou
> Date: Wed Aug 3 17:17:57 2011
> New Revision: 136820
>
> URL: http://llvm.org/viewvc/llvm-project?rev=136820&view=rev
> Log:
> Move demo page over to use clang only.
> Add dragon logo.
> Updated clang to 2.9.
>
> Modified:
> www/trunk/demo/index.cgi
>
> Modified: www/trunk/demo/index.cgi
> URL: http://llvm.org/viewvc/llvm-project/www/trunk/demo/index.cgi?rev=136820&r1=136819&r2=136820&view=diff
> ==============================================================================
> --- www/trunk/demo/index.cgi (original)
> +++ www/trunk/demo/index.cgi Wed Aug 3 17:17:57 2011
> @@ -19,13 +19,11 @@
> my $FORM_URL = 'index.cgi';
> my $MAILADDR = 'sabre at nondot.org';
> my $CONTACT_ADDRESS = 'Questions or comments? Email the <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">LLVMdev mailing list</a>.';
> -my $LOGO_IMAGE_URL = 'cathead.png';
> +my $LOGO_IMAGE_URL = '../img/DragonSmall.png';
> my $TIMEOUTAMOUNT = 20;
>
> my @PREPENDPATHDIRS =
> - (
> - '/opt/llvm-gcc-releases/llvm-gcc/bin',
> - '/opt/clang-releases/llvm/bin');
> + ('/opt/clang-releases/llvm/bin');
>
> my $defaultsrc = "#include <stdio.h>\n#include <stdlib.h>\n\n" .
> "int factorial(int X) {\n if (X == 0) return 1;\n" .
> @@ -127,7 +125,7 @@
> <body leftmargin="10" marginwidth="10">
>
> <div class="www_sectiontitle">
> - Try out LLVM 2.7 in your browser!
> + Try out LLVM 2.9 in your browser!
> </div>
>
> <table border=0><tr><td>
> @@ -141,7 +139,7 @@
> my $currtime = time();
> if ($locktime + 60 > $currtime) {
> print "This page is already in use by someone else at this ";
> - print "time, try reloading in a second or two. Meow!</td></tr></table>'\n";
> + print "time, try reloading in a second or two.</td></tr></table>'\n";
> exit 0;
> }
> }
> @@ -149,7 +147,7 @@
> system("touch $ROOT/locked");
>
> print <<END;
> -Bitter Melon the cat says, paste a C/C++/Fortran program in the text box or
> +Paste a C/C++ program in the text box or
> upload one from your computer, and you can see LLVM compile it, meow!!
Should a dragon really meow? :)
Also, it appears that the default source code produces a warning:
Output from llvm C/C++ front-end (clang)
/tmp/webcompile/_4493_0.c:9:14: warning: unused parameter 'argc'
[-Wunused-parameter]
int main(int argc, char **argv) {
^
1 diagnostic generated.
-Eli
More information about the llvm-commits
mailing list