diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-18 05:09:16 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-18 05:09:16 +0000 |
commit | c74a197153dae0577209a2e12b9bc984f9f4df45 (patch) | |
tree | 0071ecd9b57dcc912f9cbfee237f2ed3e1335582 /lib/VMCore/PrintModulePass.cpp | |
parent | 2a8bb840d2f0d297e5ce77f062199274bd22a4e4 (diff) | |
download | external_llvm-c74a197153dae0577209a2e12b9bc984f9f4df45.zip external_llvm-c74a197153dae0577209a2e12b9bc984f9f4df45.tar.gz external_llvm-c74a197153dae0577209a2e12b9bc984f9f4df45.tar.bz2 |
Eliminate several more unnecessary intptr_t casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/PrintModulePass.cpp')
-rw-r--r-- | lib/VMCore/PrintModulePass.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/VMCore/PrintModulePass.cpp b/lib/VMCore/PrintModulePass.cpp index 61e5889..7cb009a 100644 --- a/lib/VMCore/PrintModulePass.cpp +++ b/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; |