summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/PrintModulePass.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-02-18 05:09:16 +0000
committerDan Gohman <gohman@apple.com>2009-02-18 05:09:16 +0000
commit38a9631d5f04fe6b20909cfc2295f3dcc85cc873 (patch)
tree33f284eae4e98de734f1c3187847f8c4f3d92dcd /llvm/lib/VMCore/PrintModulePass.cpp
parent5805c98526ab0c0f5f1233c6ae95c79c77217fd5 (diff)
downloadbcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.tar.gz
bcm5719-llvm-38a9631d5f04fe6b20909cfc2295f3dcc85cc873.zip
Eliminate several more unnecessary intptr_t casts.
llvm-svn: 64888
Diffstat (limited to 'llvm/lib/VMCore/PrintModulePass.cpp')
-rw-r--r--llvm/lib/VMCore/PrintModulePass.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/PrintModulePass.cpp b/llvm/lib/VMCore/PrintModulePass.cpp
index 61e5889bb78..7cb009a7d3c 100644
--- a/llvm/lib/VMCore/PrintModulePass.cpp
+++ b/llvm/lib/VMCore/PrintModulePass.cpp
@@ -27,10 +27,10 @@ namespace {
bool DeleteStream; // Delete the ostream in our dtor?
public:
static char ID;
- PrintModulePass() : ModulePass(intptr_t(&ID)), Out(&errs()),
+ PrintModulePass() : ModulePass(&ID), Out(&errs()),
DeleteStream(false) {}
PrintModulePass(raw_ostream *o, bool DS)
- : ModulePass(intptr_t(&ID)), Out(o), DeleteStream(DS) {}
+ : ModulePass(&ID), Out(o), DeleteStream(DS) {}
~PrintModulePass() {
if (DeleteStream) delete Out;
@@ -53,10 +53,10 @@ namespace {
bool DeleteStream; // Delete the ostream in our dtor?
public:
static char ID;
- PrintFunctionPass() : FunctionPass(intptr_t(&ID)), Banner(""), Out(&errs()),
+ PrintFunctionPass() : FunctionPass(&ID), Banner(""), Out(&errs()),
DeleteStream(false) {}
PrintFunctionPass(const std::string &B, raw_ostream *o, bool DS)
- : FunctionPass(intptr_t(&ID)), Banner(B), Out(o), DeleteStream(DS) {}
+ : FunctionPass(&ID), Banner(B), Out(o), DeleteStream(DS) {}
inline ~PrintFunctionPass() {
if (DeleteStream) delete Out;
OpenPOWER on IntegriCloud