diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/ProfileInfoLoader.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/ARMException.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.h | 11 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/StackSlotColoring.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Support/YAMLParser.cpp | 4 | 
5 files changed, 3 insertions, 21 deletions
diff --git a/llvm/lib/Analysis/ProfileInfoLoader.cpp b/llvm/lib/Analysis/ProfileInfoLoader.cpp index 027116e7ed2..5c7c97cad1e 100644 --- a/llvm/lib/Analysis/ProfileInfoLoader.cpp +++ b/llvm/lib/Analysis/ProfileInfoLoader.cpp @@ -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 << "': "; diff --git a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp index b60fda86a6b..bf5d8c48800 100644 --- a/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/ARMException.cpp @@ -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() {} diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h index b5f86ab1b95..75f6056c449 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.h @@ -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. diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index 1e940b1d071..20da36e8fb4 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/lib/CodeGen/StackSlotColoring.cpp @@ -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());        } diff --git a/llvm/lib/Support/YAMLParser.cpp b/llvm/lib/Support/YAMLParser.cpp index 8b7658fd9ca..7c353c89bb8 100644 --- a/llvm/lib/Support/YAMLParser.cpp +++ b/llvm/lib/Support/YAMLParser.cpp @@ -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());  | 

