ROSE  0.11.133.0
Attributes.h
1 #ifndef ROSE_BinaryAnalysis_Dwarf_Attributes_H
2 #define ROSE_BinaryAnalysis_Dwarf_Attributes_H
3 
4 #include <AstAttributeMechanism.h>
5 
6 namespace Rose {
7 namespace BinaryAnalysis {
8 namespace Dwarf {
9 
10  /* DWARF attributes use the built-in AstAttribute mechanism for storage in SgAsmDwarfConstruct
11  * nodes in the AST. */
12  class DwarfAttribute : public AstAttribute {
13  public:
14  DwarfAttribute(std::string s) : value(s) { }
15  virtual std::string toString() { return value; }
16  std::string get() { return value; }
17  private:
18  std::string value;
19  };
20 
21 }
22 }
23 }
24 
25 #endif // ROSE_BinaryAnalysis_Dwarf_Attributes_H
Main namespace for the ROSE library.
Base class for all IR node attribute values.
virtual std::string toString()
Convert an attribute to a string.
Definition: Attributes.h:15