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