Skip to content

Commit

Permalink
Remove use of Instruction::Ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Apr 3, 2024
1 parent 05912ba commit bce8c48
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/dataflowAPI/public/stackanalysis.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ stack heights mean.

.. cpp:type:: boost::shared_ptr<InstructionAPI::Instruction> InstructionPtr

An alias for :cpp:type:`InstructionAPI::Instruction::Ptr`.
An alias for :cpp:type:`InstructionAPI::Instruction`.

.. cpp:type:: boost::shared_ptr<InstructionAPI::Expression> ExpressionPtr

Expand Down
3 changes: 3 additions & 0 deletions docs/instructionAPI/public/Instruction.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ Instruction.h

.. cpp:type:: boost::shared_ptr<Instruction> Ptr

.. deprecated:: 10.0.0
.. warning:: For legacy support only. Do not use.

.. cpp:function:: Instruction(Operation::Ptr what, size_t size, const unsigned char *raw, Architecture arch)

Constructs an instruction from the ``arch`` ISA that consumes ``size`` bytes from ``raw``
Expand Down
2 changes: 1 addition & 1 deletion docs/parseAPI/public/CFG.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ CFG.h
**A basic block**

.. cpp:type:: std::vector<Edge *> edgelist
.. cpp:type:: std::map<Offset, InstructionAPI::Instruction::Ptr> Insns
.. cpp:type:: std::map<Offset, InstructionAPI::Instruction> Insns

.. cpp:function:: Block(CodeObject * o, CodeRegion * r, Address start, Function* f = NULL)

Expand Down
2 changes: 1 addition & 1 deletion docs/patchAPI/public/PatchCFG.h.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ PatchCFG.h

**A wrapper around a ParseAPI::Block**.

.. cpp:type:: std::map<Address, InstructionAPI::Instruction::Ptr> Insns
.. cpp:type:: std::map<Address, InstructionAPI::Instruction> Insns
.. cpp:type:: std::vector<PatchEdge*> edgelist

.. cpp:function:: PatchBlock(const PatchBlock *parblk, PatchObject *child)
Expand Down

0 comments on commit bce8c48

Please sign in to comment.