summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CodeGenerator.rst
diff options
context:
space:
mode:
authorDmitri Gribenko <gribozavr@gmail.com>2012-09-30 20:51:02 +0000
committerDmitri Gribenko <gribozavr@gmail.com>2012-09-30 20:51:02 +0000
commit37f92c74d24fdb483bdcdf38e8935bba4e6b143e (patch)
tree6cc3aa7e2634be00fcfe3c198ab79d57488ef5d7 /llvm/docs/CodeGenerator.rst
parent0fd5ce068ede31cb8385ae2b723a788cb8b023c4 (diff)
downloadbcm5719-llvm-37f92c74d24fdb483bdcdf38e8935bba4e6b143e.tar.gz
bcm5719-llvm-37f92c74d24fdb483bdcdf38e8935bba4e6b143e.zip
RST docs: convert HTML escapes to plain text in code examples.
llvm-svn: 164922
Diffstat (limited to 'llvm/docs/CodeGenerator.rst')
-rw-r--r--llvm/docs/CodeGenerator.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/CodeGenerator.rst b/llvm/docs/CodeGenerator.rst
index d1d0231105b..72b12539cd7 100644
--- a/llvm/docs/CodeGenerator.rst
+++ b/llvm/docs/CodeGenerator.rst
@@ -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 &amp;MBB = ...
+ MachineBasicBlock &MBB = ...
BuildMI(MBB, X86::MOV32ri, 1, DestReg).addImm(42);
// Create the same instr, but insert it before a specified iterator point.
@@ -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(&amp;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
OpenPOWER on IntegriCloud