From 8bd5e35978064f85e98cd2c7c2b3746d2604c17e Mon Sep 17 00:00:00 2001 From: Dmitri Gribenko Date: Sun, 30 Sep 2012 20:51:02 +0000 Subject: [PATCH] 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 --- docs/AliasAnalysis.rst | 2 +- docs/CodeGenerator.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/AliasAnalysis.rst b/docs/AliasAnalysis.rst index 2d4f2914ee0..fdaec89cdf6 100644 --- a/docs/AliasAnalysis.rst +++ b/docs/AliasAnalysis.rst @@ -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. } diff --git a/docs/CodeGenerator.rst b/docs/CodeGenerator.rst index d1d0231105b..72b12539cd7 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 -- 2.34.1