ROSE 0.11.145.147
AsmUnparser_compat.h
1/* Old functions for backward compatitility, reimplemented in terms of AsmUnparser. */
2#ifndef ROSE_ASM_UNPARSER_COMPAT_H
3#define ROSE_ASM_UNPARSER_COMPAT_H
4
5#include <featureTests.h>
6#ifdef ROSE_ENABLE_BINARY_ANALYSIS
7#include <Rose/BinaryAnalysis/BasicTypes.h>
8#include "AsmUnparser.h"
9
11ROSE_DLL_API std::string unparseInstruction(SgAsmInstruction*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels =nullptr);
12ROSE_DLL_API std::string unparseInstruction(SgAsmInstruction*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels,
14
16ROSE_DLL_API std::string unparseInstructionWithAddress(SgAsmInstruction*,
17 const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels = nullptr);
18ROSE_DLL_API std::string unparseInstructionWithAddress(SgAsmInstruction*,
21
23ROSE_DLL_API std::string unparseMnemonic(SgAsmInstruction*);
24
27ROSE_DLL_API std::string unparseExpression(SgAsmExpression*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels,
29
30ROSE_DLL_API std::string unparseAsmStatement(SgAsmStatement*);
31
32ROSE_DLL_API void unparseAsmStatementToFile(const std::string& filename, SgAsmStatement*);
33
34ROSE_DLL_API std::string unparseAsmInterpretation(SgAsmInterpretation*);
35
36#endif
37#endif
std::map< uint64_t, std::string > LabelMap
Maps integers to labels.
Base class for expressions.
Base class for machine instructions.
Represents an interpretation of a binary container.
Base class for statement-like subclasses.