It's not legal to fold a load from a narrower stack slot into a wider instruction...
[llvm/avr.git] / lib / CodeGen / AsmPrinter / DwarfLabel.h
blob0c0cc4bdc3c6b1f14e199a2f50de80d3e5c4b360
1 //===--- lib/CodeGen/DwarfLabel.h - Dwarf Label -----------------*- 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 // DWARF Labels.
11 //
12 //===----------------------------------------------------------------------===//
14 #ifndef CODEGEN_ASMPRINTER_DWARFLABEL_H__
15 #define CODEGEN_ASMPRINTER_DWARFLABEL_H__
17 namespace llvm {
18 class FoldingSetNodeID;
19 class raw_ostream;
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.
26 class DWLabel {
27 /// Tag - Label category tag. Should always be a statically declared C
28 /// string.
29 ///
30 const char *Tag;
32 /// Number - Value to make label unique.
33 ///
34 unsigned Number;
35 public:
36 DWLabel(const char *T, unsigned N) : Tag(T), Number(N) {}
38 // Accessors.
39 const char *getTag() const { return Tag; }
40 unsigned getNumber() const { return Number; }
42 /// Profile - Used to gather unique data for the folding set.
43 ///
44 void Profile(FoldingSetNodeID &ID) const;
46 #ifndef NDEBUG
47 void print(raw_ostream &O) const;
48 #endif
50 } // end llvm namespace
52 #endif