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 | |
parent | 58c7ea736146b97df56770edf7478548d8445f1e (diff) | |
download | external_llvm-8bd5e35978064f85e98cd2c7c2b3746d2604c17e.zip external_llvm-8bd5e35978064f85e98cd2c7c2b3746d2604c17e.tar.gz external_llvm-8bd5e35978064f85e98cd2c7c2b3746d2604c17e.tar.bz2 |
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')
-rw-r--r-- | docs/AliasAnalysis.rst | 2 | ||||
-rw-r--r-- | docs/CodeGenerator.rst | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/AliasAnalysis.rst b/docs/AliasAnalysis.rst index 2d4f291..fdaec89 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 d1d0231..72b1253 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 |