ROSE  0.11.52.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 "AsmUnparser.h"
8 
10 ROSE_DLL_API std::string unparseInstruction(SgAsmInstruction*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels=NULL,
11  const Rose::BinaryAnalysis::RegisterDictionary *registers=NULL);
12 
14 ROSE_DLL_API std::string unparseInstructionWithAddress(SgAsmInstruction*,
16  const Rose::BinaryAnalysis::RegisterDictionary *registers=NULL);
17 
19 ROSE_DLL_API std::string unparseMnemonic(SgAsmInstruction*);
20 
23 ROSE_DLL_API std::string unparseExpression(SgAsmExpression*, const Rose::BinaryAnalysis::AsmUnparser::LabelMap *labels,
25 
26 ROSE_DLL_API std::string unparseAsmStatement(SgAsmStatement*);
27 
28 ROSE_DLL_API void unparseAsmStatementToFile(const std::string& filename, SgAsmStatement*);
29 
30 ROSE_DLL_API std::string unparseAsmInterpretation(SgAsmInterpretation*);
31 
32 #endif
33 #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:900
Defines registers available for a particular architecture.
Definition: Registers.h:37
Represents an interpretation of a binary container.