1 //===-- DWARFDebugMacro.h ---------------------------------------*- C++ -*-===//
\r
3 // The LLVM Compiler Infrastructure
\r
5 // This file is distributed under the University of Illinois Open Source
\r
6 // License. See LICENSE.TXT for details.
\r
8 //===----------------------------------------------------------------------===//
\r
10 #ifndef LLVM_DEBUGINFO_DWARF_DWARFDEBUGMACRO_H
\r
11 #define LLVM_DEBUGINFO_DWARF_DWARFDEBUGMACRO_H
\r
13 #include "llvm/ADT/SmallVector.h"
\r
14 #include "llvm/ADT/StringRef.h"
\r
15 #include "llvm/Support/DataExtractor.h"
\r
16 #include "llvm/Support/Dwarf.h"
\r
22 class DWARFDebugMacro {
\r
23 /// A single macro entry within a macro list.
\r
25 /// The type of the macro entry.
\r
28 /// The source line where the macro is defined.
\r
30 /// Vendor extension constant value.
\r
31 uint64_t ExtConstant;
\r
35 /// The string (name, value) of the macro entry.
\r
36 const char *MacroStr;
\r
37 // An unsigned integer indicating the identity of the source file.
\r
39 /// Vendor extension string.
\r
44 typedef SmallVector<Entry, 4> MacroList;
\r
46 /// A list of all the macro entries in the debug_macinfo section.
\r
50 DWARFDebugMacro() {}
\r
51 /// Print the macro list found within the debug_macinfo section.
\r
52 void dump(raw_ostream &OS) const;
\r
53 /// Parse the debug_macinfo section accessible via the 'data' parameter.
\r
54 void parse(DataExtractor data);
\r