]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/llvm/lib/DebugInfo/DWARFAttribute.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / llvm / lib / DebugInfo / DWARFAttribute.h
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