diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-04 14:58:56 +0000 | 
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2009-11-04 14:58:56 +0000 | 
| commit | 36bf506ad3c99a309ca8bd73bd03563d8d068ac0 (patch) | |
| tree | b4dc751bcee540346911aa4115729eff2f991657 /lib/Transforms/Instrumentation/RSProfiling.cpp | |
| parent | f9666f9b3a3d26810deae8cd54feb6e47ecee61a (diff) | |
Notes
Diffstat (limited to 'lib/Transforms/Instrumentation/RSProfiling.cpp')
| -rw-r--r-- | lib/Transforms/Instrumentation/RSProfiling.cpp | 13 | 
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/Transforms/Instrumentation/RSProfiling.cpp b/lib/Transforms/Instrumentation/RSProfiling.cpp index 3b72260db845..c08efc1e4bdd 100644 --- a/lib/Transforms/Instrumentation/RSProfiling.cpp +++ b/lib/Transforms/Instrumentation/RSProfiling.cpp @@ -42,7 +42,6 @@  #include "llvm/Transforms/Scalar.h"  #include "llvm/Transforms/Utils/BasicBlockUtils.h"  #include "llvm/Support/CommandLine.h" -#include "llvm/Support/Compiler.h"  #include "llvm/Support/Debug.h"  #include "llvm/Support/ErrorHandling.h"  #include "llvm/Support/raw_ostream.h" @@ -72,7 +71,7 @@ namespace {    /// NullProfilerRS - The basic profiler that does nothing.  It is the default    /// profiler and thus terminates RSProfiler chains.  It is useful for     /// measuring framework overhead -  class VISIBILITY_HIDDEN NullProfilerRS : public RSProfilers { +  class NullProfilerRS : public RSProfilers {    public:      static char ID; // Pass identification, replacement for typeid      bool isProfiling(Value* v) { @@ -94,7 +93,7 @@ static RegisterAnalysisGroup<RSProfilers, true> NPT(NP);  namespace {    /// Chooser - Something that chooses when to make a sample of the profiled code -  class VISIBILITY_HIDDEN Chooser { +  class Chooser {    public:      /// ProcessChoicePoint - is called for each basic block inserted to choose       /// between normal and sample code @@ -108,7 +107,7 @@ namespace {    //Things that implement sampling policies    //A global value that is read-mod-stored to choose when to sample.    //A sample is taken when the global counter hits 0 -  class VISIBILITY_HIDDEN GlobalRandomCounter : public Chooser { +  class GlobalRandomCounter : public Chooser {      GlobalVariable* Counter;      Value* ResetValue;      const IntegerType* T; @@ -120,7 +119,7 @@ namespace {    };    //Same is GRC, but allow register allocation of the global counter -  class VISIBILITY_HIDDEN GlobalRandomCounterOpt : public Chooser { +  class GlobalRandomCounterOpt : public Chooser {      GlobalVariable* Counter;      Value* ResetValue;      AllocaInst* AI; @@ -134,7 +133,7 @@ namespace {    //Use the cycle counter intrinsic as a source of pseudo randomness when    //deciding when to sample. -  class VISIBILITY_HIDDEN CycleCounter : public Chooser { +  class CycleCounter : public Chooser {      uint64_t rm;      Constant *F;    public: @@ -145,7 +144,7 @@ namespace {    };    /// ProfilerRS - Insert the random sampling framework -  struct VISIBILITY_HIDDEN ProfilerRS : public FunctionPass { +  struct ProfilerRS : public FunctionPass {      static char ID; // Pass identification, replacement for typeid      ProfilerRS() : FunctionPass(&ID) {}  | 
