aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-09 06:12:26 +0000
committerChris Lattner <sabre@nondot.org>2004-01-09 06:12:26 +0000
commitf7703df4968084c18c248c1feea9961c19a32e6a (patch)
tree5a3e4830177c09d61c4bf51e8d6ef6338d172196 /lib/Transforms/Instrumentation
parent21949d90881e89ab9c7b752f82f51577a1f0c095 (diff)
downloadexternal_llvm-f7703df4968084c18c248c1feea9961c19a32e6a.zip
external_llvm-f7703df4968084c18c248c1feea9961c19a32e6a.tar.gz
external_llvm-f7703df4968084c18c248c1feea9961c19a32e6a.tar.bz2
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r--lib/Transforms/Instrumentation/BlockProfiling.cpp4
-rw-r--r--lib/Transforms/Instrumentation/TraceValues.cpp9
2 files changed, 4 insertions, 9 deletions
diff --git a/lib/Transforms/Instrumentation/BlockProfiling.cpp b/lib/Transforms/Instrumentation/BlockProfiling.cpp
index 90ef14d..7b38d70 100644
--- a/lib/Transforms/Instrumentation/BlockProfiling.cpp
+++ b/lib/Transforms/Instrumentation/BlockProfiling.cpp
@@ -24,8 +24,7 @@
#include "llvm/Instructions.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
-
-namespace llvm {
+using namespace llvm;
static void insertInitializationCall(Function *MainFn, const char *FnName,
GlobalValue *Array) {
@@ -184,4 +183,3 @@ bool BlockProfiler::run(Module &M) {
return true;
}
-} // End llvm namespace
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp
index c802f73..30904a6 100644
--- a/lib/Transforms/Instrumentation/TraceValues.cpp
+++ b/lib/Transforms/Instrumentation/TraceValues.cpp
@@ -25,8 +25,7 @@
#include "Support/StringExtras.h"
#include <algorithm>
#include <sstream>
-
-namespace llvm {
+using namespace llvm;
static cl::opt<bool>
DisablePtrHashing("tracedisablehashdisable", cl::Hidden,
@@ -112,11 +111,11 @@ namespace {
} // end anonymous namespace
-Pass *createTraceValuesPassForFunction() { // Just trace functions
+Pass *llvm::createTraceValuesPassForFunction() { // Just trace functions
return new FunctionTracer();
}
-Pass *createTraceValuesPassForBasicBlocks() { // Trace BB's and functions
+Pass *llvm::createTraceValuesPassForBasicBlocks() { // Trace BB's and functions
return new BasicBlockTracer();
}
@@ -435,5 +434,3 @@ bool InsertTraceCode::runOnFunction(Function &F) {
return true;
}
-
-} // End llvm namespace