diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-13 21:44:10 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-13 21:44:10 +0000 |
commit | c48c550e1322aebfbe35c7570891619db43bdb9b (patch) | |
tree | f692a276c984fc840d0168979733ab03472b1c2f /include | |
parent | bb8c5959c83504fbc438e6efade30fa4b70a25b6 (diff) | |
download | llvm-c48c550e1322aebfbe35c7570891619db43bdb9b.tar.gz llvm-c48c550e1322aebfbe35c7570891619db43bdb9b.tar.bz2 llvm-c48c550e1322aebfbe35c7570891619db43bdb9b.tar.xz |
Use DwarfWriter to record dbg variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 8 | ||||
-rw-r--r-- | include/llvm/CodeGen/DwarfWriter.h | 4 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 9d7ff15ffc..cdc7951625 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -32,7 +32,7 @@ namespace llvm { class GlobalVariable; class MachineConstantPoolEntry; class MachineConstantPoolValue; - class MachineModuleInfo; + class DwarfWriter; class Mangler; class Section; class TargetAsmInfo; @@ -51,10 +51,10 @@ namespace llvm { /// unsigned FunctionNumber; - /// MachineModuleInfo - This is needed because printDeclare() has to insert - /// DebugVariable entries into the dwarf table. This is a short term hack + /// 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. - MachineModuleInfo *MMI; + DwarfWriter *DW; // GCMetadataPrinters - The garbage collection metadata printer table. typedef DenseMap<GCStrategy*,GCMetadataPrinter*> gcp_map_type; diff --git a/include/llvm/CodeGen/DwarfWriter.h b/include/llvm/CodeGen/DwarfWriter.h index 24b0f97dfc..19601a4d9c 100644 --- a/include/llvm/CodeGen/DwarfWriter.h +++ b/include/llvm/CodeGen/DwarfWriter.h @@ -93,6 +93,10 @@ public: /// getRecordSourceLineCount - Count source lines. unsigned getRecordSourceLineCount(); + /// RecordVariable - Indicate the declaration of a local variable. + /// + void RecordVariable(GlobalVariable *GV, unsigned FrameIndex); + /// hasDebugInfo - Return true if debug info intrinsics are seen in /// this module. bool hasDebugInfo(); |