aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
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 90ef14df7e..7b38d70d9e 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 c802f73604..30904a627e 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