1 //===--- lib/CodeGen/DwarfLabel.h - Dwarf Label -----------------*- 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 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #ifndef CODEGEN_ASMPRINTER_DWARFLABEL_H__
15 #define CODEGEN_ASMPRINTER_DWARFLABEL_H__
18 class FoldingSetNodeID
;
21 //===--------------------------------------------------------------------===//
22 /// DWLabel - Labels are used to track locations in the assembler file.
23 /// Labels appear in the form @verbatim <prefix><Tag><Number> @endverbatim,
24 /// where the tag is a category of label (Ex. location) and number is a value
25 /// unique in that category.
27 /// Tag - Label category tag. Should always be a statically declared C
32 /// Number - Value to make label unique.
36 DWLabel(const char *T
, unsigned N
) : Tag(T
), Number(N
) {}
39 const char *getTag() const { return Tag
; }
40 unsigned getNumber() const { return Number
; }
42 /// Profile - Used to gather unique data for the folding set.
44 void Profile(FoldingSetNodeID
&ID
) const;
47 void print(raw_ostream
&O
) const;
50 } // end llvm namespace