ROSE  0.11.98.0
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 
11 ROSE_DLL_API std::string unparseInstruction(SgAsmInstruction*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels =nullptr);
12 ROSE_DLL_API std::string unparseInstruction(SgAsmInstruction*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels,
14 
16 ROSE_DLL_API std::string unparseInstructionWithAddress(SgAsmInstruction*,
17  const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels = nullptr);
18 ROSE_DLL_API std::string unparseInstructionWithAddress(SgAsmInstruction*,
21 
23 ROSE_DLL_API std::string unparseMnemonic(SgAsmInstruction*);
24 
27 ROSE_DLL_API std::string unparseExpression(SgAsmExpression*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels,
29 
30 ROSE_DLL_API std::string unparseAsmStatement(SgAsmStatement*);
31 
32 ROSE_DLL_API void unparseAsmStatementToFile(const std::string& filename, SgAsmStatement*);
33 
34 ROSE_DLL_API std::string unparseAsmInterpretation(SgAsmInterpretation*);
35 
36 #endif
37 #endif
Base class for machine instructions.
Base class for statement-like subclasses.
Base class for expressions.
std::map< uint64_t, std::string > LabelMap
Maps integers to labels.
Definition: AsmUnparser.h:901
Represents an interpretation of a binary container.