Simplified marking code regions -- no need to use <div> to surround <pre> tags.

llvm-svn: 61143
This commit is contained in:
Misha Brukman 2008-12-17 18:11:40 +00:00
parent 6c321b6298
commit 29f390b507
1 changed files with 18 additions and 38 deletions

View File

@ -234,11 +234,9 @@ it:</p>
<li><p>Run <tt>configure</tt> with an alternative <tt>PATH</tt> that is <li><p>Run <tt>configure</tt> with an alternative <tt>PATH</tt> that is
correct. In a Borne compatible shell, the syntax would be:</p> correct. In a Borne compatible shell, the syntax would be:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% PATH=[the path without the bad program] ./configure ... % PATH=[the path without the bad program] ./configure ...
</pre> </pre>
</div>
<p>This is still somewhat inconvenient, but it allows <tt>configure</tt> <p>This is still somewhat inconvenient, but it allows <tt>configure</tt>
to do its work without having to adjust your <tt>PATH</tt> to do its work without having to adjust your <tt>PATH</tt>
@ -278,9 +276,9 @@ old version. What do I do?</p>
can just run the following command in the top level directory of your object can just run the following command in the top level directory of your object
tree:</p> tree:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>% ./config.status &lt;relative path to Makefile&gt;</pre> % ./config.status &lt;relative path to Makefile&gt;
</div> </pre>
<p>If the Makefile is new, you will have to modify the configure script to copy <p>If the Makefile is new, you will have to modify the configure script to copy
it over.</p> it over.</p>
@ -315,18 +313,16 @@ clean</tt> and then <tt>make</tt> in the directory that fails to build.</p>
<p>For example, if you built LLVM with the command:</p> <p>For example, if you built LLVM with the command:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>% gmake ENABLE_PROFILING=1</pre> % gmake ENABLE_PROFILING=1
</div> </pre>
<p>...then you must run the tests with the following commands:</p> <p>...then you must run the tests with the following commands:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% cd llvm/test % cd llvm/test
% gmake ENABLE_PROFILING=1 % gmake ENABLE_PROFILING=1
</pre> </pre>
</div>
</div> </div>
@ -365,25 +361,21 @@ target".</p>
<div class="answer"> <div class="answer">
<p>If the error is of the form:</p> <p>If the error is of the form:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
gmake[2]: *** No rule to make target `/path/to/somefile', needed by gmake[2]: *** No rule to make target `/path/to/somefile', needed by
`/path/to/another/file.d'.<br> `/path/to/another/file.d'.<br>
Stop. Stop.
</pre> </pre>
</div>
<p>This may occur anytime files are moved within the Subversion repository or <p>This may occur anytime files are moved within the Subversion repository or
removed entirely. In this case, the best solution is to erase all removed entirely. In this case, the best solution is to erase all
<tt>.d</tt> files, which list dependencies for source files, and rebuild:</p> <tt>.d</tt> files, which list dependencies for source files, and rebuild:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% cd $LLVM_OBJ_DIR % cd $LLVM_OBJ_DIR
% rm -f `find . -name \*\.d` % rm -f `find . -name \*\.d`
% gmake % gmake
</pre> </pre>
</div>
<p>In other cases, it may be necessary to run <tt>make clean</tt> before <p>In other cases, it may be necessary to run <tt>make clean</tt> before
rebuilding.</p> rebuilding.</p>
@ -540,13 +532,11 @@ find libcrtend.a.
The only way this can happen is if you haven't installed the runtime library. To The only way this can happen is if you haven't installed the runtime library. To
correct this, do:</p> correct this, do:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% cd llvm/runtime % cd llvm/runtime
% make clean ; make install-bytecode % make clean ; make install-bytecode
</pre> </pre>
</div> </div>
</div>
<div class="question"> <div class="question">
<p> <p>
@ -583,21 +573,17 @@ C++ support for a processor that does not otherwise have a C++ compiler.
<ol> <ol>
<li><p>Compile your program as normal with llvm-g++:</p> <li><p>Compile your program as normal with llvm-g++:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% llvm-g++ x.cpp -o program % llvm-g++ x.cpp -o program
</pre> </pre>
</div>
<p>or:</p> <p>or:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% llvm-g++ a.cpp -c % llvm-g++ a.cpp -c
% llvm-g++ b.cpp -c % llvm-g++ b.cpp -c
% llvm-g++ a.o b.o -o program % llvm-g++ a.o b.o -o program
</pre> </pre>
</div>
<p>With llvm-gcc3, this will generate program and program.bc. The .bc <p>With llvm-gcc3, this will generate program and program.bc. The .bc
file is the LLVM version of the program all linked together.</p></li> file is the LLVM version of the program all linked together.</p></li>
@ -605,19 +591,15 @@ C++ support for a processor that does not otherwise have a C++ compiler.
<li><p>Convert the LLVM code to C code, using the LLC tool with the C <li><p>Convert the LLVM code to C code, using the LLC tool with the C
backend:</p> backend:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% llc -march=c program.bc -o program.c % llc -march=c program.bc -o program.c
</pre> </pre></li>
</div></li>
<li><p>Finally, compile the C file:</p> <li><p>Finally, compile the C file:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
% cc x.c % cc x.c
</pre> </pre></li>
</div></li>
</ol> </ol>
@ -708,11 +690,9 @@ you can read from and assign to <tt>volatile</tt> global variables.
a value that is not defined. You can get these if you do not initialize a a value that is not defined. You can get these if you do not initialize a
variable before you use it. For example, the C function:</p> variable before you use it. For example, the C function:</p>
<div class="doc_code"> <pre class="doc_code">
<pre>
int X() { int i; return i; } int X() { int i; return i; }
</pre> </pre>
</div>
<p>Is compiled to "<tt>ret i32 undef</tt>" because "<tt>i</tt>" never has <p>Is compiled to "<tt>ret i32 undef</tt>" because "<tt>i</tt>" never has
a value specified for it.</p> a value specified for it.</p>