diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-30 20:51:02 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-30 20:51:02 +0000 |
commit | 8bd5e35978064f85e98cd2c7c2b3746d2604c17e (patch) | |
tree | c8e9f79c44988460bc90d51ddb0c508c49fdf072 /docs/CodeGenerator.rst | |
parent | 58c7ea736146b97df56770edf7478548d8445f1e (diff) |
RST docs: convert HTML escapes to plain text in code examples.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodeGenerator.rst')
-rw-r--r-- | docs/CodeGenerator.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/CodeGenerator.rst b/docs/CodeGenerator.rst index d1d0231105..72b12539cd 100644 --- a/docs/CodeGenerator.rst +++ b/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 &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(&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 |