diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-02-13 14:58:13 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-02-13 14:58:13 +0000 |
commit | d4aec3a22f5b4c987be1c3815fdadbac72c6de5b (patch) | |
tree | a57d2c8ef3c5eaafb94bf394eb3dacdfeb6df08b /lib/CodeGen/Address.h | |
parent | c2f1760e15d4e9e7a9eeadc99e8575fa1b2f7389 (diff) |
Diffstat (limited to 'lib/CodeGen/Address.h')
-rw-r--r-- | lib/CodeGen/Address.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/lib/CodeGen/Address.h b/lib/CodeGen/Address.h index 9d145fa26b5f8..334308081ff3c 100644 --- a/lib/CodeGen/Address.h +++ b/lib/CodeGen/Address.h @@ -104,23 +104,15 @@ public: }; } -} -namespace llvm { - // Present a minimal LLVM-like casting interface. - template <class U> inline U cast(clang::CodeGen::Address addr) { - return U::castImpl(addr); - } - template <class U> inline bool isa(clang::CodeGen::Address addr) { - return U::isaImpl(addr); - } +// Present a minimal LLVM-like casting interface. +template <class U> inline U cast(CodeGen::Address addr) { + return U::castImpl(addr); +} +template <class U> inline bool isa(CodeGen::Address addr) { + return U::isaImpl(addr); } -namespace clang { - // Make our custom isa and cast available in namespace clang, to mirror - // what we do for LLVM's versions in Basic/LLVM.h. - using llvm::isa; - using llvm::cast; } #endif |