Benjamin Kramer | 72c0d7f | 2011-09-13 19:42:23 +0000 | [diff] [blame] | 1 | //===-- DWARFAttribute.h ----------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef LLVM_DEBUGINFO_DWARFATTRIBUTE_H |
| 11 | #define LLVM_DEBUGINFO_DWARFATTRIBUTE_H |
| 12 | |
| 13 | #include "llvm/Support/DataTypes.h" |
| 14 | |
| 15 | namespace llvm { |
| 16 | |
| 17 | class DWARFAttribute { |
| 18 | uint16_t Attribute; |
| 19 | uint16_t Form; |
| 20 | public: |
| 21 | DWARFAttribute(uint16_t attr, uint16_t form) |
| 22 | : Attribute(attr), Form(form) {} |
| 23 | |
| 24 | uint16_t getAttribute() const { return Attribute; } |
| 25 | uint16_t getForm() const { return Form; } |
| 26 | }; |
| 27 | |
| 28 | } |
| 29 | |
| 30 | #endif |