summaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/AsmPrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index a004632..f3ca306 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -33,6 +33,7 @@ namespace llvm {
class GlobalVariable;
class MachineConstantPoolEntry;
class MachineConstantPoolValue;
+ class MachineModuleInfo;
class DwarfWriter;
class Mangler;
class Section;
@@ -58,14 +59,12 @@ namespace llvm {
gcp_map_type GCMetadataPrinters;
protected:
- /// DW -This is needed because printDeclare() has to insert
- /// DbgVariable entries into the dwarf table. This is a short term hack
- /// that ought be fixed soon.
+ /// MMI - If available, this is a pointer to the current MachineModuleInfo.
+ MachineModuleInfo *MMI;
+
+ /// DW - If available, this is a pointer to the current dwarf writer.
DwarfWriter *DW;
- // Necessary for external weak linkage support
- std::set<const GlobalValue*> ExtWeakSymbols;
-
/// OptLevel - Generating code at a specific optimization level.
CodeGenOpt::Level OptLevel;
public:
@@ -110,6 +109,15 @@ namespace llvm {
///
bool VerboseAsm;
+ /// Private state for PrintSpecial()
+ // Assign a unique ID to this machine instruction.
+ mutable const MachineInstr *LastMI;
+ mutable const Function *LastFn;
+ mutable unsigned Counter;
+
+ // Private state for processDebugLock()
+ mutable DebugLocTuple PrevDLT;
+
protected:
explicit AsmPrinter(raw_ostream &o, TargetMachine &TM,
const TargetAsmInfo *T, CodeGenOpt::Level OL, bool V);
OpenPOWER on IntegriCloud