summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-07-08 19:59:35 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-07-08 19:59:35 +0000
commite5a532dae346f5f34d8ae8fa3f8f0ff3c747243e (patch)
treed312b3185c66cf7428b7f7b5a2c44e9edc39bb6b /docs
parent881b0b5c77ec3f6849e32b7763b6c75057b81501 (diff)
downloadllvm-e5a532dae346f5f34d8ae8fa3f8f0ff3c747243e.tar.gz
llvm-e5a532dae346f5f34d8ae8fa3f8f0ff3c747243e.tar.bz2
llvm-e5a532dae346f5f34d8ae8fa3f8f0ff3c747243e.tar.xz
IR headers moved to llvm/IR some aeons ago, update documentation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185854 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/GarbageCollection.rst10
-rw-r--r--docs/ProgrammersManual.rst18
-rw-r--r--docs/WritingAnLLVMPass.rst4
3 files changed, 16 insertions, 16 deletions
diff --git a/docs/GarbageCollection.rst b/docs/GarbageCollection.rst
index 5c3a1af23c..b72227792b 100644
--- a/docs/GarbageCollection.rst
+++ b/docs/GarbageCollection.rst
@@ -764,8 +764,8 @@ The following can be used as a template:
.. code-block:: c++
- #include "llvm/Module.h"
- #include "llvm/IntrinsicInst.h"
+ #include "llvm/IR/Module.h"
+ #include "llvm/IR/IntrinsicInst.h"
bool MyGC::initializeCustomLowering(Module &M) {
return false;
@@ -915,10 +915,10 @@ map for the entire module, and may access the ``GCFunctionInfo`` using its own
.. code-block:: c++
#include "llvm/CodeGen/AsmPrinter.h"
- #include "llvm/Function.h"
- #include "llvm/Target/TargetMachine.h"
- #include "llvm/DataLayout.h"
+ #include "llvm/IR/Function.h"
+ #include "llvm/IR/DataLayout.h"
#include "llvm/Target/TargetAsmInfo.h"
+ #include "llvm/Target/TargetMachine.h"
void MyGCPrinter::beginAssembly(std::ostream &OS, AsmPrinter &AP,
const TargetAsmInfo &TAI) {
diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst
index 7864165617..2910a2aa1c 100644
--- a/docs/ProgrammersManual.rst
+++ b/docs/ProgrammersManual.rst
@@ -2421,7 +2421,7 @@ place the ``vptr`` in the first word of the instances.)
The Core LLVM Class Hierarchy Reference
=======================================
-``#include "llvm/Type.h"``
+``#include "llvm/IR/Type.h"``
header source: `Type.h <http://llvm.org/doxygen/Type_8h-source.html>`_
@@ -2524,7 +2524,7 @@ Important Derived Types
The ``Module`` class
--------------------
-``#include "llvm/Module.h"``
+``#include "llvm/IR/Module.h"``
header source: `Module.h <http://llvm.org/doxygen/Module_8h-source.html>`_
@@ -2611,7 +2611,7 @@ Important Public Members of the ``Module`` class
The ``Value`` class
-------------------
-``#include "llvm/Value.h"``
+``#include "llvm/IR/Value.h"``
header source: `Value.h <http://llvm.org/doxygen/Value_8h-source.html>`_
@@ -2702,7 +2702,7 @@ Important Public Members of the ``Value`` class
The ``User`` class
------------------
-``#include "llvm/User.h"``
+``#include "llvm/IR/User.h"``
header source: `User.h <http://llvm.org/doxygen/User_8h-source.html>`_
@@ -2748,7 +2748,7 @@ interface and through an iterator based interface.
The ``Instruction`` class
-------------------------
-``#include "llvm/Instruction.h"``
+``#include "llvm/IR/Instruction.h"``
header source: `Instruction.h
<http://llvm.org/doxygen/Instruction_8h-source.html>`_
@@ -2896,7 +2896,7 @@ Important Subclasses of Constant
The ``GlobalValue`` class
-------------------------
-``#include "llvm/GlobalValue.h"``
+``#include "llvm/IR/GlobalValue.h"``
header source: `GlobalValue.h
<http://llvm.org/doxygen/GlobalValue_8h-source.html>`_
@@ -2955,7 +2955,7 @@ Important Public Members of the ``GlobalValue`` class
The ``Function`` class
----------------------
-``#include "llvm/Function.h"``
+``#include "llvm/IR/Function.h"``
header source: `Function.h <http://llvm.org/doxygen/Function_8h-source.html>`_
@@ -3063,7 +3063,7 @@ Important Public Members of the ``Function``
The ``GlobalVariable`` class
----------------------------
-``#include "llvm/GlobalVariable.h"``
+``#include "llvm/IR/GlobalVariable.h"``
header source: `GlobalVariable.h
<http://llvm.org/doxygen/GlobalVariable_8h-source.html>`_
@@ -3121,7 +3121,7 @@ Important Public Members of the ``GlobalVariable`` class
The ``BasicBlock`` class
------------------------
-``#include "llvm/BasicBlock.h"``
+``#include "llvm/IR/BasicBlock.h"``
header source: `BasicBlock.h
<http://llvm.org/doxygen/BasicBlock_8h-source.html>`_
diff --git a/docs/WritingAnLLVMPass.rst b/docs/WritingAnLLVMPass.rst
index e7a87a12d2..1114fa0f21 100644
--- a/docs/WritingAnLLVMPass.rst
+++ b/docs/WritingAnLLVMPass.rst
@@ -96,7 +96,7 @@ Start out with:
.. code-block:: c++
#include "llvm/Pass.h"
- #include "llvm/Function.h"
+ #include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
Which are needed because we are writing a `Pass
@@ -184,7 +184,7 @@ As a whole, the ``.cpp`` file looks like:
.. code-block:: c++
#include "llvm/Pass.h"
- #include "llvm/Function.h"
+ #include "llvm/IR/Function.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;