From cc7a92888538905412bd3ac3f034cab3f95b8603 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 20 May 2011 09:20:25 +0000 Subject: [PATCH] Remove noisy semicolons. llvm-svn: 131724 --- llvm/include/llvm/DefaultPasses.h | 17 +++++++++++------ llvm/lib/Target/Mips/MipsMachineFunction.h | 2 +- llvm/lib/VMCore/StandardPasses.cpp | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/llvm/include/llvm/DefaultPasses.h b/llvm/include/llvm/DefaultPasses.h index 8a87bc54144d..e2e58a5b98a0 100644 --- a/llvm/include/llvm/DefaultPasses.h +++ b/llvm/include/llvm/DefaultPasses.h @@ -106,10 +106,12 @@ class StandardPass { }; /// Returns the optimisation level from a set of flags. static unsigned OptimizationLevel(unsigned flags) { - return flags & OptimizationLevelMask ; }; + return flags & OptimizationLevelMask; + } /// Returns the maximum optimization level for this set of flags static unsigned MaxOptimizationLevel(unsigned flags) { - return (flags & MaxOptimizationLevelMask) >> 4; }; + return (flags & MaxOptimizationLevelMask) >> 4; + } /// Constructs a set of flags from the specified minimum and maximum /// optimisation level static unsigned OptimzationFlags(unsigned minLevel=0, unsigned maxLevel=0xf, @@ -117,13 +119,16 @@ class StandardPass { return ((minLevel & OptimizationLevelMask) | ((maxLevel<> RequiredFlagShift; }; + return (flags & RequiredFlagMask) >> RequiredFlagShift; + } /// Returns the flags that must not be set for this to match static unsigned DisallowedFlags(unsigned flags) { - return (flags & DisallowedFlagMask) >> DisallowedFlagShift; }; + return (flags & DisallowedFlagMask) >> DisallowedFlagShift; + } /// Register a standard pass in the specified set. If flags is non-zero, /// then the pass will only be returned when the specified flags are set. template @@ -134,7 +139,7 @@ class StandardPass { // Use the pass's ID if one is not specified RegisterDefaultPass(PassInfo::NormalCtor_t(callDefaultCtor), ID ? ID : (unsigned char*)&passName::ID, runBefore, set, flags); - }; + } }; /// Adds the passes from the specified set to the provided pass manager static void AddPassesFromSet(PassManagerBase *PM, diff --git a/llvm/lib/Target/Mips/MipsMachineFunction.h b/llvm/lib/Target/Mips/MipsMachineFunction.h index bbb14a54e19b..325619313dee 100644 --- a/llvm/lib/Target/Mips/MipsMachineFunction.h +++ b/llvm/lib/Target/Mips/MipsMachineFunction.h @@ -167,7 +167,7 @@ public: int getVarArgsFrameIndex() const { return VarArgsFrameIndex; } void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; } - bool hasCall() const { return HasCall; }; + bool hasCall() const { return HasCall; } void setHasCall() { HasCall = true; } }; diff --git a/llvm/lib/VMCore/StandardPasses.cpp b/llvm/lib/VMCore/StandardPasses.cpp index 5a98fd68043c..842fbd422820 100644 --- a/llvm/lib/VMCore/StandardPasses.cpp +++ b/llvm/lib/VMCore/StandardPasses.cpp @@ -37,7 +37,7 @@ struct StandardPassEntry { unsigned flags; StandardPassEntry(PassInfo::NormalCtor_t constructor, unsigned char *ID, - unsigned f) : createPass(constructor), passID(ID), flags(f) {}; + unsigned f) : createPass(constructor), passID(ID), flags(f) {} }; /// Standard alias analysis passes