[llvm-commits] [llvm] r65191 - /llvm/branches/Apple/Dib/include/llvm/CodeGen/MachineFunction.h

Bill Wendling isanbard at gmail.com
Fri Feb 20 14:33:50 PST 2009


Author: void
Date: Fri Feb 20 16:33:50 2009
New Revision: 65191

URL: http://llvm.org/viewvc/llvm-project?rev=65191&view=rev
Log:
Pull r65091 into Dib:

Add a default debug location object to the Machine Function. It's used to emit a
default debugging label at the beginning of a function.

Modified:
    llvm/branches/Apple/Dib/include/llvm/CodeGen/MachineFunction.h

Modified: llvm/branches/Apple/Dib/include/llvm/CodeGen/MachineFunction.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/include/llvm/CodeGen/MachineFunction.h?rev=65191&r1=65190&r2=65191&view=diff

==============================================================================
--- llvm/branches/Apple/Dib/include/llvm/CodeGen/MachineFunction.h (original)
+++ llvm/branches/Apple/Dib/include/llvm/CodeGen/MachineFunction.h Fri Feb 20 16:33:50 2009
@@ -95,6 +95,10 @@
   typedef ilist<MachineBasicBlock> BasicBlockListType;
   BasicBlockListType BasicBlocks;
 
+  // Default debug location. Used to print out the debug label at the beginning
+  // of a function.
+  DebugLoc DefaultDebugLoc;
+
   // Tracks debug locations.
   DebugLocTracker DebugLocInfo;
 
@@ -319,6 +323,14 @@
 
   /// getDebugLocTuple - Get the DebugLocTuple for a given DebugLoc object.
   DebugLocTuple getDebugLocTuple(DebugLoc DL) const;
+
+  /// getDefaultDebugLoc - Get the default debug location for the machine
+  /// function.
+  DebugLoc getDefaultDebugLoc() const { return DefaultDebugLoc; }
+
+  /// setDefaultDebugLoc - Get the default debug location for the machine
+  /// function.
+  void setDefaultDebugLoc(DebugLoc DL) { DefaultDebugLoc = DL; }
 };
 
 //===--------------------------------------------------------------------===//





More information about the llvm-commits mailing list