Remove unused private member variables uncovered by the recent changes to clang's...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 Jul 2012 22:05:57 +0000 (22:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 Jul 2012 22:05:57 +0000 (22:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160583 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ProfileInfoLoader.h
lib/Analysis/ProfileInfoLoader.cpp
lib/CodeGen/AsmPrinter/ARMException.cpp
lib/CodeGen/AsmPrinter/DwarfException.h
lib/CodeGen/StackSlotColoring.cpp
lib/Support/YAMLParser.cpp

index 4539757b7860f67e9198bd6756fcc3402870690b..dcf3b38ddcd596622ebdd0cf8e9f819e2c71fe0a 100644 (file)
@@ -34,7 +34,6 @@ class ProfileInfoLoader {
   std::vector<unsigned>    EdgeCounts;
   std::vector<unsigned>    OptimalEdgeCounts;
   std::vector<unsigned>    BBTrace;
-  bool Warned;
 public:
   // ProfileInfoLoader ctor - Read the specified profiling data file, exiting
   // the program if the file is invalid or broken.
index 027116e7ed2f9c4784c874f23bfd650d366ae30f..5c7c97cad1e5a8e99ea5130be39da3e715c1702d 100644 (file)
@@ -84,7 +84,7 @@ const unsigned ProfileInfoLoader::Uncounted = ~0U;
 //
 ProfileInfoLoader::ProfileInfoLoader(const char *ToolName,
                                      const std::string &Filename)
-  : Filename(Filename), Warned(false) {
+  : Filename(Filename) {
   FILE *F = fopen(Filename.c_str(), "rb");
   if (F == 0) {
     errs() << ToolName << ": Error opening '" << Filename << "': ";
index b60fda86a6ba7538565ee24614f0cacd6f105d52..bf5d8c488000539a2ae07b369f2e638d8f3194b6 100644 (file)
@@ -44,9 +44,7 @@ EnableARMEHABIDescriptors("arm-enable-ehabi-descriptors", cl::Hidden,
 
 
 ARMException::ARMException(AsmPrinter *A)
-  : DwarfException(A),
-    shouldEmitTable(false), shouldEmitMoves(false), shouldEmitTableModule(false)
-    {}
+  : DwarfException(A) {}
 
 ARMException::~ARMException() {}
 
index b5f86ab1b9512682f1b77c292f8d19674007a755..75f6056c449b8a212752b3e5e1b485622e9d64d0 100644 (file)
@@ -175,17 +175,6 @@ public:
 };
 
 class ARMException : public DwarfException {
-  /// shouldEmitTable - Per-function flag to indicate if EH tables should
-  /// be emitted.
-  bool shouldEmitTable;
-
-  /// shouldEmitMoves - Per-function flag to indicate if frame moves info
-  /// should be emitted.
-  bool shouldEmitMoves;
-
-  /// shouldEmitTableModule - Per-module flag to indicate if EH tables
-  /// should be emitted.
-  bool shouldEmitTableModule;
 public:
   //===--------------------------------------------------------------------===//
   // Main entry points.
index 1e940b1d0711a13e3572fc49a975d5ea7f10fc0a..20da36e8fb4141f82dc184f4ea74867277866ead 100644 (file)
@@ -46,7 +46,6 @@ STATISTIC(NumDead,       "Number of trivially dead stack accesses eliminated");
 
 namespace {
   class StackSlotColoring : public MachineFunctionPass {
-    bool ColorWithRegs;
     LiveStacks* LS;
     MachineFrameInfo *MFI;
     const TargetInstrInfo  *TII;
@@ -82,7 +81,7 @@ namespace {
   public:
     static char ID; // Pass identification
     StackSlotColoring() :
-      MachineFunctionPass(ID), ColorWithRegs(false), NextColor(-1) {
+      MachineFunctionPass(ID), NextColor(-1) {
         initializeStackSlotColoringPass(*PassRegistry::getPassRegistry());
       }
 
index 8b7658fd9ca9b308b5149be1eaaf799bdbe86c80..7c353c89bb842a86089ef716a7edcdcb426db05a 100644 (file)
@@ -489,9 +489,6 @@ private:
   /// @brief Can the next token be the start of a simple key?
   bool IsSimpleKeyAllowed;
 
-  /// @brief Is the next token required to start a simple key?
-  bool IsSimpleKeyRequired;
-
   /// @brief True if an error has occurred.
   bool Failed;
 
@@ -704,7 +701,6 @@ Scanner::Scanner(StringRef Input, SourceMgr &sm)
   , FlowLevel(0)
   , IsStartOfStream(true)
   , IsSimpleKeyAllowed(true)
-  , IsSimpleKeyRequired(false)
   , Failed(false) {
   InputBuffer = MemoryBuffer::getMemBuffer(Input, "YAML");
   SM.AddNewSourceBuffer(InputBuffer, SMLoc());