diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-10-25 06:33:48 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-10-25 06:33:48 +0000 |
commit | 6726b6d75a8b679068a58cb954ba97cf9d1690ba (patch) | |
tree | 9e901e44f4933e507d7f8fc095cce1d9cdcc72ad /lib/Transforms/Instrumentation/RSProfiling.cpp | |
parent | a1e1446056d54d116908fa1bba02998c92905464 (diff) |
Remove VISIBILITY_HIDDEN from class/struct found inside anonymous namespaces.
Chris claims we should never have visibility_hidden inside any .cpp file but
that's still not true even after this commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/RSProfiling.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/RSProfiling.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/Instrumentation/RSProfiling.cpp b/lib/Transforms/Instrumentation/RSProfiling.cpp index 3b72260db8..132dd0c808 100644 --- a/lib/Transforms/Instrumentation/RSProfiling.cpp +++ b/lib/Transforms/Instrumentation/RSProfiling.cpp @@ -72,7 +72,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 +94,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 +108,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 +120,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 +134,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 +145,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) {} |