summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-09-04 17:05:41 +0000
committerDan Gohman <gohman@apple.com>2008-09-04 17:05:41 +0000
commita79db30d284205cf27d90f9a174a7eb28c8afcb8 (patch)
tree6889329ccf26fd620cce0799a3cdf94b0acde4e3 /llvm/lib/Transforms/Instrumentation
parent4b19157ba913903a07284ad3c066da9a7e7fc8c6 (diff)
downloadbcm5719-llvm-a79db30d284205cf27d90f9a174a7eb28c8afcb8.tar.gz
bcm5719-llvm-a79db30d284205cf27d90f9a174a7eb28c8afcb8.zip
Tidy up several unbeseeming casts from pointer to intptr_t.
llvm-svn: 55779
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-rw-r--r--llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp2
-rw-r--r--llvm/lib/Transforms/Instrumentation/RSProfiling.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
index 2cf824b25f5..0831f3b7a48 100644
--- a/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/EdgeProfiling.cpp
@@ -34,7 +34,7 @@ namespace {
bool runOnModule(Module &M);
public:
static char ID; // Pass identification, replacement for typeid
- EdgeProfiler() : ModulePass((intptr_t)&ID) {}
+ EdgeProfiler() : ModulePass(&ID) {}
};
}
diff --git a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
index 45a7c712d8c..c6cf4dfd6eb 100644
--- a/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/RSProfiling.cpp
@@ -144,7 +144,7 @@ namespace {
/// ProfilerRS - Insert the random sampling framework
struct VISIBILITY_HIDDEN ProfilerRS : public FunctionPass {
static char ID; // Pass identification, replacement for typeid
- ProfilerRS() : FunctionPass((intptr_t)&ID) {}
+ ProfilerRS() : FunctionPass(&ID) {}
std::map<Value*, Value*> TransCache;
std::set<BasicBlock*> ChoicePoints;
OpenPOWER on IntegriCloud