Skip to content

Commit

Permalink
RST docs: convert HTML escapes to plain text in code examples.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164922 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
gribozavr committed Sep 30, 2012
1 parent 58c7ea7 commit 8bd5e35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/AliasAnalysis.rst
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ any pass dependencies your pass has. Thus you should have something like this:

.. code-block:: c++

void getAnalysisUsage(AnalysisUsage &AU) const {
void getAnalysisUsage(AnalysisUsage &AU) const {
AliasAnalysis::getAnalysisUsage(AU);
// declare your dependencies here.
}
Expand Down
4 changes: 2 additions & 2 deletions docs/CodeGenerator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ functions make it easy to build arbitrary machine instructions. Usage of the
MachineInstr *MI = BuildMI(X86::MOV32ri, 1, DestReg).addImm(42);
// Create the same instr, but insert it at the end of a basic block.
MachineBasicBlock &MBB = ...
MachineBasicBlock &MBB = ...
BuildMI(MBB, X86::MOV32ri, 1, DestReg).addImm(42);

// Create the same instr, but insert it before a specified iterator point.
Expand All @@ -404,7 +404,7 @@ functions make it easy to build arbitrary machine instructions. Usage of the
MI = BuildMI(X86::SAHF, 0);

// Create a self looping branch instruction.
BuildMI(MBB, X86::JNE, 1).addMBB(&MBB);
BuildMI(MBB, X86::JNE, 1).addMBB(&MBB);

The key thing to remember with the ``BuildMI`` functions is that you have to
specify the number of operands that the machine instruction will take. This
Expand Down

0 comments on commit 8bd5e35

Please sign in to comment.