Branch: refs/heads/att_syntax
  Commit: a41383bc7229ccfad4c6c372edcd0bc39ac46126
  Author: Sunny Shah <>
  Date:   2016-10-17 (Mon, 17 Oct 2016)

  Changed paths:
    M instructionAPI/CMakeLists.txt
    M instructionAPI/h/ArchSpecificFormatters.h
    M instructionAPI/h/BinaryFunction.h
    M instructionAPI/h/Dereference.h
    M instructionAPI/h/Expression.h
    M instructionAPI/h/Immediate.h
    M instructionAPI/h/Instruction.h
    M instructionAPI/h/InstructionAST.h
    M instructionAPI/h/Operand.h
    M instructionAPI/h/Register.h
    A instructionAPI/src/ArchSpecificFormatters.C
    M instructionAPI/src/Immediate.C
    M instructionAPI/src/Instruction.C
    M instructionAPI/src/Operand.C
    M instructionAPI/src/Register.C

  Log Message:
  Modifications to use the new ArchSpecificFormatter class for
instruction/operand formatting

The signature of the format() method in InstructionAST and all inherited
classes that override it is modified to include a pointer to an
ArchSpecificFormatter object. The methods for each operand type
(Register, Immediate and Dereference) call the appropriate method on
ArchSpecificFormatter. The pointer is initialized within the constructor
of the Instruction class which also includes a new method to retrieve it
from elsewhere (getFormatter()).

This commit also includes implementation of methods of the ArmFormatter
class. Instruction::format() currently returns an empty string for 
architectures other
than ARM64. Implementation for other architectures will be added in
future commits.

Dyninst-api mailing list

Reply via email to