trim some spurious references to DwarfWriter. SDIsel really doesn't
authorChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2010 04:09:20 +0000 (04:09 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2010 04:09:20 +0000 (04:09 +0000)
need it anymore, so don't addRequire it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100400 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFrameInfo.h
include/llvm/Target/Target.td
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 043e97f9a7cd3123f55424a4dac70cf9eaa21c2c..973c9b91a93fb178b71390c410a92c8d2bd66128 100644 (file)
@@ -189,7 +189,7 @@ class MachineFrameInfo {
   SmallVector<bool, 8> SpillObjects;
 
   /// MMI - This field is set (via setMachineModuleInfo) by a module info
-  /// consumer (ex. DwarfWriter) to indicate that frame layout information
+  /// consumer to indicate that frame layout information
   /// should be acquired.  Typically, it's the responsibility of the target's
   /// TargetRegisterInfo prologue/epilogue emitting code to inform
   /// MachineModuleInfo of frame layouts.
@@ -455,7 +455,7 @@ public:
   /// emitter (TargetRegisterInfo) to provide frame layout information. 
   MachineModuleInfo *getMachineModuleInfo() const { return MMI; }
 
-  /// setMachineModuleInfo - Used by a meta info consumer (DwarfWriter) to
+  /// setMachineModuleInfo - Used by a meta info consumer to
   /// indicate that frame layout information should be gathered.
   void setMachineModuleInfo(MachineModuleInfo *mmi) { MMI = mmi; }
 
index 5612f97acf41e62f8c14870266db8b223b0a9ace..462c38f03d27e004ab210a663bddfa9ac83db46c 100644 (file)
@@ -132,8 +132,8 @@ class RegisterClass<string namespace, list<ValueType> regTypes, int alignment,
 //===----------------------------------------------------------------------===//
 // DwarfRegNum - This class provides a mapping of the llvm register enumeration
 // to the register numbering used by gcc and gdb.  These values are used by a
-// debug information writer (ex. DwarfWriter) to describe where values may be
-// located during execution.
+// debug information writer to describe where values may be located during
+// execution.
 class DwarfRegNum<list<int> Numbers> {
   // DwarfNumbers - Numbers used internally by gcc/gdb to identify the register.
   // These values can be determined by locating the <target>.h file in the
index 6da94a4331b3f3c0f0400ddbabe0a32eb619508b..196b73bdaed65246c434e1e72c13046f1cd1855d 100644 (file)
@@ -270,6 +270,8 @@ public:
   void dump() const;
 #endif
 };
+  
+} // end llvm namespace
 
 #ifndef NDEBUG
 void DbgScope::dump() const {
@@ -297,8 +299,6 @@ DbgScope::~DbgScope() {
     delete Variables[j];
 }
 
-} // end llvm namespace
-
 DwarfDebug::DwarfDebug(AsmPrinter *A)
   : Asm(A), MMI(Asm->MMI), ModuleCU(0),
     AbbreviationsSet(InitAbbreviationsSetSize), 
index 63ca8e67000e9839609d6e1c5c94d04745f1c5f1..d35f0da393e4de46ed211306a594a01d766861fe 100644 (file)
@@ -16,7 +16,6 @@
 #include "llvm/CodeGen/MachineFrameInfo.h"
 #include "llvm/CodeGen/MachineJumpTableInfo.h"
 #include "llvm/CodeGen/MachineModuleInfo.h"
-#include "llvm/CodeGen/DwarfWriter.h"
 #include "llvm/Analysis/DebugInfo.h"
 #include "llvm/CodeGen/PseudoSourceValue.h"
 #include "llvm/Target/TargetFrameInfo.h"
index 2ae234defbb90fbbbb2619f454fce2a240b79506..a6de8e737ea3b6e05a8ff01d9b3bc2a86604b5d1 100644 (file)
@@ -41,7 +41,6 @@
 #include "llvm/CodeGen/ScheduleHazardRecognizer.h"
 #include "llvm/CodeGen/SchedulerRegistry.h"
 #include "llvm/CodeGen/SelectionDAG.h"
-#include "llvm/CodeGen/DwarfWriter.h"
 #include "llvm/Target/TargetRegisterInfo.h"
 #include "llvm/Target/TargetData.h"
 #include "llvm/Target/TargetFrameInfo.h"
@@ -303,8 +302,6 @@ void SelectionDAGISel::getAnalysisUsage(AnalysisUsage &AU) const {
   AU.addPreserved<AliasAnalysis>();
   AU.addRequired<GCModuleInfo>();
   AU.addPreserved<GCModuleInfo>();
-  AU.addRequired<DwarfWriter>();
-  AU.addPreserved<DwarfWriter>();
   MachineFunctionPass::getAnalysisUsage(AU);
 }