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 | 865f006bb45a609e1cb6acb653af3fe5442ee4dc (patch) | |
tree | 0071ecd9b57dcc912f9cbfee237f2ed3e1335582 /include/llvm/Target/TargetData.h | |
parent | 38ad0191e9d1a9887ee355afe12d22b38a608f72 (diff) | |
download | external_llvm-865f006bb45a609e1cb6acb653af3fe5442ee4dc.tar.gz external_llvm-865f006bb45a609e1cb6acb653af3fe5442ee4dc.tar.bz2 external_llvm-865f006bb45a609e1cb6acb653af3fe5442ee4dc.zip |
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 'include/llvm/Target/TargetData.h')
-rw-r--r-- | include/llvm/Target/TargetData.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetData.h b/include/llvm/Target/TargetData.h index 92feebf01a..7e7785bb40 100644 --- a/include/llvm/Target/TargetData.h +++ b/include/llvm/Target/TargetData.h @@ -109,7 +109,7 @@ public: /// /// @note This has to exist, because this is a pass, but it should never be /// used. - TargetData() : ImmutablePass(intptr_t(&ID)) { + TargetData() : ImmutablePass(&ID) { assert(0 && "ERROR: Bad TargetData ctor used. " "Tool did not specify a TargetData to use?"); abort(); @@ -117,7 +117,7 @@ public: /// Constructs a TargetData from a specification string. See init(). explicit TargetData(const std::string &TargetDescription) - : ImmutablePass(intptr_t(&ID)) { + : ImmutablePass(&ID) { init(TargetDescription); } @@ -125,7 +125,7 @@ public: explicit TargetData(const Module *M); TargetData(const TargetData &TD) : - ImmutablePass(intptr_t(&ID)), + ImmutablePass(&ID), LittleEndian(TD.isLittleEndian()), PointerMemSize(TD.PointerMemSize), PointerABIAlign(TD.PointerABIAlign), |